]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix osx_framework_user include to match distutils (GH-27093) (GH-27159)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Jul 2021 10:10:57 +0000 (03:10 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 10:10:57 +0000 (12:10 +0200)
(cherry picked from commit 28544609cb2a79d8d7ea5a54714d723669ef2adb)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Lib/sysconfig.py
Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst [new file with mode: 0644]

index 730d33dfe1ec775963eef40636f9d1d9b19d2f5a..d70088039c987adebc862cf50acc2fe8fd7e2d7d 100644 (file)
@@ -111,7 +111,7 @@ if _HAS_USER_BASE:
             '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 (file)
index 0000000..6c70c07
--- /dev/null
@@ -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.