Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#238 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp, numpy, python
Área
build-system

Línea de trabajo

Reproduce el problema con el python_config.jam mostrado y el comando bjam en Boost 1.68.0 con VS2017. Empieza comparando la salida de -d+2 y --debug-configuration para cada versión de Python configurada e inspeccionando cómo boost.numpy selecciona sus headers. Se considera terminado cuando cada configuración de Python usa sus propios headers de NumPy y boost.numpy no se compila cuando NumPy está deshabilitado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
537
Forks
223
Merge medio
11 h 22 min
PR fusionados (30 d)
2

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de boostorg/python

Todos los issues de boostorg/python

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.