Building Boost.Python for a custom Python installation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Building Boost.Python for a custom Python installation

Boost - Users mailing list
I have a build of Python I made that was installed (--prefix) at ~/python-3.5.2-asan/. I want to build Boost.Python against it. I have Boost 1.70.0.

I have tried a variety of permutations of passing various --with-python options and such to both bootstrap and b2 with no success. Perhaps the closest I've gotten is

./bootstrap.sh --prefix=$HOME/boost-1.70.0/ --with-python=$HOME/python-3.5.2-asan/bin/python3.5 python-debugging=on

./b2 --with-python python-debugging=on -d+2  -j8 cxxflags=-fsanitize=address cflags=-fsanitize=address

but with those commands compilation fails because it is looking for include files in ...../include/python3.5/ instead of ..../include/python3.5dm


While I'm at it, I had to add cflags and cxxflags explicitly instead of doing what some documentation [1] said to, because:

./b2 --with-python python-debugging=on -d+2  -j8 address-sanitizer=1
/home/evan/Downloads/boost_1_70_0/tools/build/src/build/feature.jam:327: in validate-feature from module feature
error: unknown feature "<address-sanitizer>"


Evan

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users