From 4f88161f07538dfb24a43189fd59bf966cb40817 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 7 Sep 2021 18:27:48 +0800 Subject: [PATCH] bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011) --- Lib/sysconfig.py | 6 +++--- .../next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2021-08-28-14-52-27.bpo-45035.O9mNam.rst diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 95b48f6429d..86a9c466103 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 00000000000..b26c51ac17e --- /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`.