]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138614: `site._get_path` to respect non-default implementation name (#138610)
authorShahar Naveh <50263213+ShaharNaveh@users.noreply.github.com>
Fri, 10 Oct 2025 05:08:51 +0000 (08:08 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 05:08:51 +0000 (06:08 +0100)
* `site._get_path` to respect non-default implementation name

* Add news entry

* Remove NEWS entry

Lib/site.py

index f93271971594d8310377a0c92ad1c93ab24226f7..f0e74eeee2f2e2bd50220f883591d98621f6f441 100644 (file)
@@ -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():