boostorg / boostorg/python

How to relocate the example project?

Abierto
#477 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
537
Forks
223
Merge medio
11 h 22 min
PR fusionados (30 d)
2

Descripción

Hello!
I've managed to build the example project but needed to relocate it to my project's folder. The documentation doesn't really reflect the current state of the code and I'm a bit lost when updating the jamfile to match this new folder.

Reading the [currently available documentation](https://www.boost.org/doc/libs/1_87_0/libs/python/doc/html/building/no_install_quickstart.html#building.no_install_quickstart.modifying_the_example_project.relocate_the_project) it suggests changing some lines in the jamfile that point to the boost source folder, however as of boost 1.82.0 these lines don't exist in the jamfile anymore. In the docs we have

> change the first path in boost-build.jam from
> ../../../../tools/build/src
> to
> /home/dave/boost_1_34_0/tools/build/src
>
> and change the first path in Jamroot from
> ../../../..
> to
> /home/dave/boost_1_34_0

however the current jamfile looks like this
```
import python ;

project tutorial
: requirements
.
;

python-extension hello_ext : hello.cpp ;

run-test hello : hello_ext hello.py ;

alias test : hello ;
explicit test ;
```
which results in an error when building,
`ERROR: rule "run-test" unknown in module "Jamfile"`
which I imagine stems from this misconfiguration as it builds fine in the original folder. I am not familiar enough with the jam build system and would appreciate some directions here.
Thanks in advance!

Guía de contribución

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

Línea de trabajo

Start with the linked no_install_quickstart documentation, then compare its relocation instructions with the current boost-build.jam and Jamroot files and the shown Jamfile. Reproduce the move to a new project folder and investigate the reported unknown run-test rule. Done means the documentation matches the current files and gives a working relocation procedure.

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

Evaluación

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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.