https://github.com/python/cpython/commit/744ec1d6c395f7a443ba4609d6023f86c245db58
commit: 744ec1d6c395f7a443ba4609d6023f86c245db58
branch: main
author: Shahar Naveh <[email protected]>
committer: FFY00 <[email protected]>
date: 2025-10-10T06:08:51+01:00
summary:
gh-138614: `site._get_path` to respect non-default implementation name (#138610)
* `site._get_path` to respect non-default implementation name
* Add news entry
* Remove NEWS entry
files:
M Lib/site.py
diff --git a/Lib/site.py b/Lib/site.py
index f93271971594d83..f0e74eeee2f2e2b 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():
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]