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

Wrong NumPy headers included when building boost.numpy with multiple configured Python versions

Aperta
#238 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Riproduci il problema con il python_config.jam mostrato e il comando bjam su Boost 1.68.0 con VS2017. Inizia confrontando l'output di -d+2 e --debug-configuration per ogni versione di Python configurata e analizzando come boost.numpy seleziona i propri header. Il lavoro è completato quando ogni configurazione Python usa i propri header NumPy e boost.numpy non viene compilato quando NumPy è disabilitato.

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

Descrizione

Having configured multiple Python-installations in python_config.jam, each like

using python
    : 3.7 # version
    : C:\\Python37-x64\\ # cmd-or-prefix
    : C:\\Python37-x64\\include # includes
    : C:\\Python37-x64\\libs # libraries
    : <address-model>64 # condition
    ;

The call to
bjam target-os=windows address-model=64 debug-symbols=on debug-store=database --user-config=python_config.jam --debug-configuration --debug-generator python=3.7 -d+2 --with-python stage

Shows in its output that bjam correctly detects for each of the configured Python installations if NumPy is available or not ("enabled"/"disabled").

However, the output due to -d+2, shows that bjam includes the wrong NumPy headers. It seems that it includes them from the respective directory of whichever Python-installation comes last in python_config.jam and that has NumPy "enabled".

Additionally, even if the debug-configuration-output says that NumPy is "disabled" for a certain Python-installation, bjam will still build boost.numpy - again, including the NumPy headers for whichever installation comes last in python_config.jam that has NumPy "enabled".

Building boost 1.68.0 with VS2017 / 15.8.8 on Windows 10 x64 for Windows x64.

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.