]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011)
authorTzu-ping Chung <uranusjr@gmail.com>
Tue, 7 Sep 2021 10:27:48 +0000 (18:27 +0800)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 10:27:48 +0000 (11:27 +0100)
Lib/sysconfig.py
Misc/NEWS.d/next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst [new file with mode: 0644]

index 95b48f6429d5f81ad19a1cf6102d85e976117b0e..86a9c4661034b451bce05f3a73852d07e33edb6a 100644 (file)
@@ -37,10 +37,10 @@ _INSTALL_SCHEMES = {
         '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 (file)
index 0000000..b26c51a
--- /dev/null
@@ -0,0 +1,2 @@
+Fix the ``posix_home`` scheme in :mod:`sysconfig` to depend on
+:data:`sys.platlibdir`.