boostorg / boostorg/python

Can't build Boost Python 3 on macOS

Đang mở
#399 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
537
Fork
223
Merge trung bình
11 giờ 22 phút
Pull request đã merge (30 ngày)
2

Mô tả

Made a report https://github.com/boostorg/python/issues/401 in the `boostorg/boost` repo so I am transfering here to be more relevant.

Using official Python at [python.org](https://python.org), building Boost Python 3 (Boost 1.80.0) with
```sh
./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
```
Detecting Python version... 3.10
Detecting Python root... /Library/Frameworks/Python.framework/Versions/3.10
```
However, `b2` then 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
```

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` instead of ignoring it? (It builds perfectly for Python 2.7 included in macOS.)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.