[New-bugs-announce] [issue46158] Hardcoded sysroot path, to MacOSX11.sdk, in python sysconfig

Aditya Kumar report at bugs.python.org
Wed Dec 22 19:58:43 EST 2021


New submission from Aditya Kumar <akumar9 at snapchat.com>:

$ python3.9
Python 3.9.7 (default, Sep  3 2021, 12:37:55) 
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin

>>> import sysconfig
>>> cflags = sysconfig.get_config_var('CFLAGS')
>>> cflags
'-Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk'


Because of hardcoded 'MacOSX11.sdk', installation of python dependencies that are built from source fails when MacOSX11.sdk is not present on the system.

----------
components: macOS
messages: 409057
nosy: akumar9, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Hardcoded sysroot path, to MacOSX11.sdk, in python sysconfig
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46158>
_______________________________________


More information about the New-bugs-announce mailing list