Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Building boost.Python fails with non-standard Python installation on Windows

Aperta
#456 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python
Ambito
build-system

Direzione di ricerca

Inizia dalla configurazione user-config.jam e dagli entry point bootstrap.bat e b2 utilizzati nel report. Riproduci la build Windows con Python 3.13 estratto in Z:\Python313, quindi determina perché b2 riconosce solo Python 3.9. Il lavoro è completato quando l’installazione Python non standard configurata viene riconosciuta e Boost.Python viene compilato correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm able to successfully build boost.Python on my local machine with Python 3.13 using b2 like so:

.\bootstrap.bat vc143
.\b2 python=3.13 # other arguments

The issues start happening when I try to build on our Azure DevOps build agents. Because of .*~reasons~*. I can't install Python 3.13 directly on those build agents. So, I zipped up a python 3.13 installation, and in the build pipeline I grab the Python zip file and extract it to some directory, say, Z:\Python313. Then I created a user-config.jam in the root of the boost directory like the following:

using python : 3.13 : Z:\Python313 ;

And in the build pipeline, I try to build boost.Python like so

bootstrap.bat vc143 --with-python=3.13
b2 python=3.13

While bootstrap.bat succeeds, b2 fails with the following error:

error: "3.13" is not a known value of feature <python>
error: legal values: "3.9"

So I understand that the way I'm trying to do this is a little bit unusual, but is there a way that I can get this to work? Or must Python be installed via the installer (because b2 uses py or the registry entries that the installer creates) to build boost.Python on Windows?

Lingua principale
C++
Stelle
537
Fork
223
Merge medio
11h 22m
PR unite (30g)
2

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di boostorg/python

Tutte le issue di boostorg/python

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.