These flags will end up in builds of user Python packages with extensions
via sysconfig/distutils.
Specifically, as per https://trac.sagemath.org/ticket/32531#comment:3, the built pythons have -I and -L options in the sysconfig variables CFLAGS and LDFLAGS.
This should be fixed by putting the necessary flags for the Python build
into CFLAGS_NODIST and LDFLAGS_NODIST instead -- see similar fix for Homebrew's packaging of
python3 in Homebrew/homebrew-core#68528
and Cygwin's packaging of python3 (https://cygwin.com/pipermail/cygwin/2021-December/250302.html).
Reference: https://trac.sagemath.org/ticket/32531#comment:3
Prerequisite
Description
These flags will end up in builds of user Python packages with extensions
via
sysconfig/distutils.Specifically, as per https://trac.sagemath.org/ticket/32531#comment:3, the built pythons have
-Iand-Loptions in the sysconfig variablesCFLAGSandLDFLAGS.This should be fixed by putting the necessary flags for the Python build
into
CFLAGS_NODISTandLDFLAGS_NODISTinstead -- see similar fix for Homebrew's packaging ofpython3 in Homebrew/homebrew-core#68528
and Cygwin's packaging of python3 (https://cygwin.com/pipermail/cygwin/2021-December/250302.html).
Reference: https://trac.sagemath.org/ticket/32531#comment:3
Prerequisite
pyenvand the defaultpython-buildplugin only. Please refrain from reporting issues of other plugins here.Description
env PYENV_DEBUG=1 <faulty command> 2>&1 | tee trace.logand attachtrace.log. E.g. if you have a problem with installing Python, runenv PYENV_DEBUG=1 pyenv install -v <version> 2>&1 | tee trace.log(note the-voption topyenv install).