Can't build Boost Python 3 on macOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- build-system
Research direction
Start with bootstrap.sh and the b2 Python configuration path, then reproduce the reported commands using the official Python 3.10 macOS installer. Compare the executable names each step checks, especially python versus python3. Done means Boost.Python 3 configures and builds successfully on this installation.
Written by the indexing model from the issue text.
Description
Might be related to https://github.com/boostorg/boost/issues/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.)
- Dominant language
- C++
- Stars
- 537
- Forks
- 223
- Avg merge
- 11h 22m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/python
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmake Open
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100