boostorg / boostorg/python

How to relocate the example project?

未关闭
#477 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
537
派生
223
平均合并
11 小时 22 分钟
30 天内合并 PR
2

描述

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!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。