From a5c6bcf24479934fe9c5b859dd1cf72685a0003a Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 7 Sep 2021 17:26:42 +0800 Subject: Make sysconfig posix_user not depend on platlibdir (GH-27655) --- Lib/sysconfig.py | 2 +- Misc/NEWS.d/next/Library/2021-08-07-22-51-32.bpo-44860.PTvRrU.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2021-08-07-22-51-32.bpo-44860.PTvRrU.rst diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index d700880..95b48f6 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -101,7 +101,7 @@ if _HAS_USER_BASE: 'stdlib': '{userbase}/{platlibdir}/python{py_version_short}', 'platstdlib': '{userbase}/{platlibdir}/python{py_version_short}', 'purelib': '{userbase}/lib/python{py_version_short}/site-packages', - 'platlib': '{userbase}/{platlibdir}/python{py_version_short}/site-packages', + 'platlib': '{userbase}/lib/python{py_version_short}/site-packages', 'include': '{userbase}/include/python{py_version_short}', 'scripts': '{userbase}/bin', 'data': '{userbase}', diff --git a/Misc/NEWS.d/next/Library/2021-08-07-22-51-32.bpo-44860.PTvRrU.rst b/Misc/NEWS.d/next/Library/2021-08-07-22-51-32.bpo-44860.PTvRrU.rst new file mode 100644 index 0000000..70e0be0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-08-07-22-51-32.bpo-44860.PTvRrU.rst @@ -0,0 +1,2 @@ +Fix the ``posix_user`` scheme in :mod:`sysconfig` to not depend on +:data:`sys.platlibdir`. -- cgit v0.12