Can't build Boost Python 3 on macOS

Aberta
#399 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
cpp, python
Domínio
build-system

Direção de pesquisa

Comece reproduzindo os comandos relatados, ./bootstrap.sh --with-libraries=python --with-python=python3 e ./b2 --debug-configuration --debug-building --debug-generator install, no macOS com o instalador oficial do Python 3. Inspecione como bootstrap.sh passa a raiz do Python para o b2 e por que o b2 verifica bin/python em vez do bin/python3 disponível. Considera-se concluído quando o Boost Python 3 for compilado com sucesso usando esta instalação.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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, 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

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

Linguagem predominante
C++
Estrelas
537
Forks
223
Merge médio
11h 22min
PRs com merge (30d)
2

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de boostorg/python

Todas as issues de boostorg/python

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.