summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-15 10:10:57 (GMT)
committerGitHub <noreply@github.com>2021-07-15 10:10:57 (GMT)
commit3026d1381e1e3cb7cd0df28c9a0b5f067148665d (patch)
tree61de75d3fd44b9337fb05fd3107165fd71363e61
parentcc1a47c849a206441c9b370b6ca954862a523082 (diff)
downloadcpython-3026d1381e1e3cb7cd0df28c9a0b5f067148665d.zip
cpython-3026d1381e1e3cb7cd0df28c9a0b5f067148665d.tar.gz
cpython-3026d1381e1e3cb7cd0df28c9a0b5f067148665d.tar.bz2
Fix osx_framework_user include to match distutils (GH-27093) (GH-27159)
(cherry picked from commit 28544609cb2a79d8d7ea5a54714d723669ef2adb) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
-rw-r--r--Lib/sysconfig.py2
-rw-r--r--Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 730d33d..d700880 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -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
index 0000000..6c70c07
--- /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.