You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_osx_support._default_sysroot is dead in CPython but used downstream with no public replacement #150881
_osx_support._default_sysroot(cc) has no caller inside CPython, yet several downstream projects import it directly and there is no public replacement to send them to.
A GitHub code search finds live callers: pyston (setup.py), PyOxidizer (vendored distutils/unixccompiler.py), and the macports and fink Python patches. They call it to discover the SDK sysroot when compiling extensions.
No public replacement
sysconfig does not expose the SDK sysroot and distutils is gone, so a downstream user has nowhere supported to move. They would shell out to xcrun --show-sdk-path or copy the function body.
Question
For this private helper with live downstream use and no public equivalent, which way do we go:
Keep it as-is and document that it is unsupported.
Add a supported public equivalent first, then deprecate and remove.
Remove it now under the "private API carries no guarantee" rule and accept the breakage.
changed the title [-]Private stdlib helpers dead in CPython but used downstream with no migration path[/-][+]_osx_support._default_sysroot is dead in CPython but used downstream with no public replacement[/+]on Jun 3, 2026
Activity
[-]Private stdlib helpers dead in CPython but used downstream with no migration path[/-][+]_osx_support._default_sysroot is dead in CPython but used downstream with no public replacement[/+]ned-deily commentedon Jun 3, 2026
cc @python/macos-team