Unable to build Boost (1.71.0) with Python when Python is built with PyMalloc
- Dominant language
- C++
- Stars
- 251
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
When Python is built from source (my own testing was done with Python 3.7.4), the default is for it to build with PyMalloc (https://docs.python.org/3/c-api/memory.html#pymalloc).
The implication for the Boost build is that there are two issues with that:
* the include directory will be named (.../include/python3.7m)
* the libraries will be named as libpython3.7m.*
Note that in these two 2 cases there is an "m" suffix which throws off the Boost build as its unable to locate the proper include subdirectory and the library
There is similar issue open in the Python Boost subproject, but I believe this is purely a build issue: https://github.com/boostorg/python/issues/41.
IMO, a simple solution would be to accept the "m" suffix when specifying the Python that is to be used by Boost, something like:
`using python : 3.7m : "/usr/local/python-3.7.4" : "/usr/local/python-3.7.4/include" : "/usr/local/python-3.7.4/lib" ;`
Contributor guide
Assessment
This issue has not been assessed yet.