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`.