You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New functions in site.py to get user/global site packages paths #50942
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/tarekziade'closed_at=<Date2009-08-20.21:28:39.228>created_at=<Date2009-08-13.08:31:56.754>labels= ['type-feature', 'library']
title='New functions in site.py to get user/global site packages paths'updated_at=<Date2009-08-20.21:28:39.227>user='https://github.com/tarekziade'
The globals should get a comment explaining what their purpose is and
where they are being initialized.
The get*() functions should only initialize the globals if they are
set to None. In the patch, they are initialized every time the functions
are called.
tarekziade commented on Aug 14, 2009
tarekziademannequin
MannequinAuthor
More actions
Done.
I've put Christian in the loop since he implemented the PEP-370
feature, to make sure these changes are fine with him.
Activity
tarekziade commentedon Aug 13, 2009
As discussed in Distutils-SIG.
Here's a patch for site.py that adds:
getsitepackages : Returns a list containing all global site-packages
directories (and possibly site-python).
getusersitepackages: Returns the user-specific site-packages directory
path.
getuserbase: Returns the
user basedirectory path.malemburg commentedon Aug 13, 2009
Two things:
The globals should get a comment explaining what their purpose is and
where they are being initialized.
The get*() functions should only initialize the globals if they are
set to None. In the patch, they are initialized every time the functions
are called.
tarekziade commentedon Aug 14, 2009
Done.
I've put Christian in the loop since he implemented the PEP-370
feature, to make sure these changes are fine with him.
tarekziade commentedon Aug 20, 2009
applied in r74526 and r74529