boostorg / boostorg/python

pyconfig.h not found from custom python 3.7.2 installation

未關閉
#282 4 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
537
分支
223
平均合併
11 小時 22 分鐘
30 天內合併 PR
2

描述

When compiling boost against a custom python 3.7.2 installation the following error occurrs:
```
In file included from ./boost/python/detail/prefix.hpp:13:0,
from ./boost/python/list.hpp:8,
from libs/python/src/list.cpp:5:
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
# include
```
This is due to the fact that the include files are located within a directory called `python3.7m` in the installation include directory:
```
$ ls -l /usr/local/Python-3.7.2/include
drwxr-xr-x. 3 ralph users 4096 Jan 10 11:05 python3.7m
```
**Creating a softlink from `python3.7m` to `python3.7` solves the problem.**

This problem happened on a Centos7 installation. Python was compiled and installed with pretty much standard compile options:
```
$ ./configure CFLAGS=-fPIC --prefix=/usr/local/Python-3.7.2 --enable-optimizations
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先,使用自訂的 Python 3.7.2 安裝重現 Boost.Python 建置,並檢查包含 pyconfig.h 的 boost/python/detail/wrap_python.hpp。檢查當標頭檔位於 python3.7m 下時,如何選取 Python include 目錄;當建置能找到 pyconfig.h 而不需要手動 symlink 時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp, python
領域
build-system
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。