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
This commit is contained in:
Shahar Naveh 2025-10-10 08:08:51 +03:00 committed by GitHub
parent 34503111fe
commit 744ec1d6c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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():