Issue 6693: New functions in site.py to get user/global site packages paths (original) (raw)

Issue6693

Created on 2009-08-13 08:31 by tarek, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
site.patch tarek,2009-08-14 08:43
Messages (4)
msg91516 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-08-13 08:31
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 base` directory path.
msg91517 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2009-08-13 08:40
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.
msg91545 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-08-14 08:43
Done. I've put Christian in the loop since he implemented the PEP 370 feature, to make sure these changes are fine with him.
msg91784 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-08-20 21:28
applied in r74526 and r74529
History
Date User Action Args
2022-04-11 14:56:51 admin set github: 50942
2009-08-20 21:28:39 tarek set status: open -> closedmessages: +
2009-08-14 08:43:55 tarek set files: - site.patch
2009-08-14 08:43:45 tarek set files: + site.patchnosy: + christian.heimesmessages: +
2009-08-13 08:40:55 lemburg set nosy: + lemburgmessages: +
2009-08-13 08:31:56 tarek create