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

Abierto
#456 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Comienza con la configuración user-config.jam y los puntos de entrada bootstrap.bat y b2 utilizados en el informe. Reproduce la compilación de Windows con Python 3.13 extraído en Z:\Python313 y determina después por qué b2 solo reconoce Python 3.9. La tarea se considera completada cuando se reconoce la instalación de Python no estándar configurada y Boost.Python se compila correctamente.

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

Descripción

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?

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.