Skip to content

Commit 1d77d63

Browse files
committed
Force loading the native sysconfigdata in distutils.sysconfig
1 parent dc70ae8 commit 1d77d63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

patch/Python/sitecustomize.iOS.py

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def link(*args, **kwargs):
101101
for tool in ["ar", "as", "cc", "cxx", "ld"]:
102102
os.environ[tool.upper()] = DISABLED_COMPILER_ERROR.replace(" ", "_")
103103

104+
# Although we're building for {{os}}, we need to tell distutils.sysconfig
105+
# to load the *native* sysconfigdata.
106+
os.environ["_PYTHON_SYSCONFIGDATA_NAME"] = "_sysconfigdata__darwin_darwin"
104107

105108
# Call the next sitecustomize script if there is one
106109
# (https://nedbatchelder.com/blog/201001/running_code_at_python_startup.html).

0 commit comments

Comments
 (0)