On 1/8/20 5:53 PM, Victor Stinner wrote:
You may get the wrong information if you pick the wrong python-config script :-(
IMHO we should add a new module (problem: how should it be called? pyconfig?)
The shell script python-config has been introduced by bpo issue 16235 named "Add
python-config.sh for use during cross compilation" in order "to behave exactly the same
as python-config.py except it doesn't depend on a Python interpreter" as stated in the OP. So
it does not make sense to say that one may pick the wrong python-config script. Its purpose is to
provide cross-compilation configuration data independently of any Python interpreter running
natively on the build machine used to do the cross-compilation.
FWIW the shell script python-config is generated from Misc/python-config.sh by
configure and updated by the Makefile.
Xavier
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/UNIJPEYGZHDW2UGBK4JNI5TEDY3MDDPF/
Code of Conduct: http://python.org/psf/codeofconduct/