From: Tzu-ping Chung Date: Tue, 7 Sep 2021 10:27:48 +0000 (+0800) Subject: bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011) X-Git-Tag: v3.11.0a1~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f88161f07538dfb24a43189fd59bf966cb40817;p=thirdparty%2FPython%2Fcpython.git bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011) --- diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 95b48f6429d5..86a9c4661034 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -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 index 000000000000..b26c51ac17e7 --- /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`.