[Python-checkins] Fix osx_framework_user include to match distutils (#27093)

ambv webhook-mailer at python.org
Thu Jul 15 05:44:22 EDT 2021


https://github.com/python/cpython/commit/28544609cb2a79d8d7ea5a54714d723669ef2adb
commit: 28544609cb2a79d8d7ea5a54714d723669ef2adb
branch: main
author: Tzu-ping Chung <uranusjr at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-07-15T11:44:04+02:00
summary:

Fix osx_framework_user include to match distutils (#27093)

files:
A Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst
M Lib/sysconfig.py

diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 730d33dfe1ec77..d70088039c987a 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -111,7 +111,7 @@ def joinuser(*args):
             'platstdlib': '{userbase}/lib/python',
             'purelib': '{userbase}/lib/python/site-packages',
             'platlib': '{userbase}/lib/python/site-packages',
-            'include': '{userbase}/include',
+            'include': '{userbase}/include/python{py_version_short}',
             'scripts': '{userbase}/bin',
             'data': '{userbase}',
             },
diff --git a/Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst b/Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst
new file mode 100644
index 00000000000000..6c70c07669f9c1
--- /dev/null
+++ b/Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst
@@ -0,0 +1,2 @@
+The framework build's user header path in sysconfig is changed to add a
+'pythonX.Y' component to match distutils's behavior.



More information about the Python-checkins mailing list