Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue6693

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:New functions in site.py to get user/global site packages paths
Type:enhancementStage:
Components:Library (Lib)Versions:Python 3.2, Python 2.7
process
Status:closedResolution:
Dependencies:Superseder:
Assigned To: tarekNosy List: christian.heimes, lemburg, tarek
Priority:normalKeywords:patch

Created on2009-08-13 08:31 bytarek, last changed2022-04-11 14:56 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
site.patchtarek,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-packagesdirectories (and possibly site-python).- getusersitepackages: Returns the user-specific site-packages directorypath.- 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 andwhere they are being initialized. * The get*() functions should only initialize the globals if they areset to None. In the patch, they are initialized every time the functionsare 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 thePEP 370feature, to make sure these changes are fine with him.
msg91784 -(view)Author: Tarek Ziadé (tarek)*(Python committer)Date: 2009-08-20 21:28
applied inr74526 andr74529
History
DateUserActionArgs
2022-04-11 14:56:51adminsetgithub: 50942
2009-08-20 21:28:39tareksetstatus: open -> closed

messages: +msg91784
2009-08-14 08:43:55tareksetfiles: -site.patch
2009-08-14 08:43:45tareksetfiles: +site.patch
nosy: +christian.heimes
messages: +msg91545

2009-08-13 08:40:55lemburgsetnosy: +lemburg
messages: +msg91517
2009-08-13 08:31:56tarekcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp