[Python-checkins] bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011)

pablogsal webhook-mailer at python.org
Tue Sep 7 06:28:21 EDT 2021


https://github.com/python/cpython/commit/4f88161f07538dfb24a43189fd59bf966cb40817
commit: 4f88161f07538dfb24a43189fd59bf966cb40817
branch: main
author: Tzu-ping Chung <uranusjr at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-09-07T11:27:48+01:00
summary:

bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011)

files:
A Misc/NEWS.d/next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst
M Lib/sysconfig.py

diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 95b48f6429d5f8..86a9c4661034b4 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -37,10 +37,10 @@
         'data': '{base}',
         },
     'posix_home': {
-        'stdlib': '{installed_base}/lib/python',
-        'platstdlib': '{base}/lib/python',
+        'stdlib': '{installed_base}/{platlibdir}/python',
+        'platstdlib': '{base}/{platlibdir}/python',
         'purelib': '{base}/lib/python',
-        'platlib': '{base}/lib/python',
+        'platlib': '{base}/{platlibdir}/python',
         'include': '{installed_base}/include/python',
         'platinclude': '{installed_base}/include/python',
         'scripts': '{base}/bin',
diff --git a/Misc/NEWS.d/next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst b/Misc/NEWS.d/next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst
new file mode 100644
index 00000000000000..b26c51ac17e7c5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst
@@ -0,0 +1,2 @@
+Fix the ``posix_home`` scheme in :mod:`sysconfig` to depend on
+:data:`sys.platlibdir`.



More information about the Python-checkins mailing list