boost icon indicating copy to clipboard operation
boost copied to clipboard

Properly detect python header files

Open yoonghm opened this issue 5 years ago • 5 comments

The original code use python -c "import sys; print(sys.prefix)" which did not show actual directory for include file.

The proper way is python -c "from sysconfig import get_paths as gp; print(gp()['include'])"

yoonghm avatar Aug 19 '19 15:08 yoonghm

with this patch i see the change in project-config.jam but g++ calls still use the wrong include path for python include.

ali5h avatar Aug 25 '19 22:08 ali5h

A nit: We don't take PRs against the master branch. We take them against develop, then let the tests run, and merge to master.

mclow avatar Aug 28 '19 18:08 mclow

This patch is incorrect - the real issue looks to be in boost build - if you don't fully specify version, includes and libraries in the python script it ignores the given version and tries to infer it from sys.version which is missing the m part of the version string.

jsharpe avatar Dec 03 '19 12:12 jsharpe

See https://github.com/boostorg/build/issues/481

jsharpe avatar Dec 03 '19 12:12 jsharpe

I don't see how this could solve the problem. The issue is python.jam that sets the path to $(prefix)/include/python$(version).

likan999 avatar Apr 29 '20 00:04 likan999