Can't build Boost Python 3 on macOS

Aperta
#401 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, macos, python
Ambito
build-system

Direzione di ricerca

Inizia con bootstrap.sh e il percorso di configurazione Python di b2, quindi riproduci i comandi segnalati usando l’installer ufficiale di Python 3.10 per macOS. Confronta i nomi degli eseguibili verificati da ciascun passaggio, in particolare python e python3. Il lavoro è completato quando Boost.Python 3 viene configurato e compilato correttamente su questa installazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.)

Lingua principale
C++
Stelle
537
Fork
223
Merge medio
11h 22m
PR unite (30g)
2

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di boostorg/python

Tutte le issue di boostorg/python

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.