This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients akumar9, ned.deily, ronaldoussoren
Date 2021-12-23.05:40:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640238052.96.0.0133790859169.issue46158@roundup.psfhosted.org>
In-reply-to
Content
Whether or not a macOS sysroot path is included in CFLAGS depends on how the Python build was configured and built. For instance, the macOS Python binaries provided on python.org do not include a sysroot path in CFLAGS; from the version info provided, you are using a Python from some other source. But, even if there is one there, there is code in the standard library helper function _osx_support.py to remove a sysroot from CFLAGS at runtime if the file is not present. That is used by distutils and *should* be being used by setuptools as well but it's possible that other build systems aren't using it or there might be a bug there. Can you give a reproducible test case showing a build failure including from where you got the Python 3.9.7 you are using?

https://github.com/python/cpython/blob/3.9/Lib/_osx_support.py#L331
History
Date User Action Args
2021-12-23 05:40:53ned.deilysetrecipients: + ned.deily, ronaldoussoren, akumar9
2021-12-23 05:40:52ned.deilysetmessageid: <1640238052.96.0.0133790859169.issue46158@roundup.psfhosted.org>
2021-12-23 05:40:52ned.deilylinkissue46158 messages
2021-12-23 05:40:52ned.deilycreate