Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build Boost Python 3 on macOS #401

Open
light-tech opened this issue Oct 10, 2022 · 0 comments
Open

Can't build Boost Python 3 on macOS #401

light-tech opened this issue Oct 10, 2022 · 0 comments

Comments

@light-tech
Copy link

Might be related to boostorg/boost#503 but building Boost Python 3 (Boost 1.80.0) with

./bootstrap.sh --with-libraries=python --with-python=python3
./b2 --debug-configuration --debug-building --debug-generator install

does not work: bootstrap.sh seems to work as it detected the right Python root location (I am using official Python installer at python.org instead of MacPort in the aforementioned issue)

Detecting Python version... 3.10
Detecting Python root... /Library/Frameworks/Python.framework/Versions/3.10

However, b2 reports

notice: [python-cfg] Configuring python...
notice: [python-cfg]   user-specified version: "3.10"
notice: [python-cfg]   user-specified cmd-or-prefix: "/Library/Frameworks/Python.framework/Versions/3.10"
notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.10/bin/python"...
notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.10/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter

and apparently, the Python 3 installer on macOS does not created bin/python, only bin/python3. Shouldn't it take into account the suggested name for the Python executable in bootstrap? (It builds perfectly for Python 2.7 included in macOS.)

@mclow mclow transferred this issue from boostorg/boost Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant