boostorg / boostorg/python

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

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

描述

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
: 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.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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