From b2a2490c24c19596664f53bb8d6dab22af2ccd93 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sun, 7 Sep 2025 11:48:01 +0300 Subject: [PATCH 1/3] `site._get_path` to respect non-default implementation name --- Lib/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/site.py b/Lib/site.py index f93271971594d8..f0e74eeee2f2e2 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -333,7 +333,7 @@ def _get_path(userbase): if sys.platform == 'darwin' and sys._framework: return f'{userbase}/lib/{implementation_lower}/site-packages' - return f'{userbase}/lib/python{version[0]}.{version[1]}{abi_thread}/site-packages' + return f'{userbase}/lib/{implementation_lower}{version[0]}.{version[1]}{abi_thread}/site-packages' def getuserbase(): From 503c8fc20689b0f4fab7a8b484d1b1eaad7092bb Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sun, 7 Sep 2025 12:44:26 +0300 Subject: [PATCH 2/3] Add news entry --- .../next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst diff --git a/Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst b/Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst new file mode 100644 index 00000000000000..74a872f1945594 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst @@ -0,0 +1,2 @@ +:mod:`site`: correctly synchronize the ``purelib`` installation scheme with +the one defined in :mod:`sysconfig`. From 27c78ce8f8ed1273bde3ee8978f4a690eee4e233 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sat, 4 Oct 2025 22:29:42 +0300 Subject: [PATCH 3/3] Remove NEWS entry --- .../next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst diff --git a/Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst b/Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst deleted file mode 100644 index 74a872f1945594..00000000000000 --- a/Misc/NEWS.d/next/Library/2025-09-07-12-43-51.gh-issue-138614.7-4rrs.rst +++ /dev/null @@ -1,2 +0,0 @@ -:mod:`site`: correctly synchronize the ``purelib`` installation scheme with -the one defined in :mod:`sysconfig`.