Message153737
| Author |
vstinner |
| Recipients |
eric.araujo, neologix, pitrou, tarek, vstinner |
| Date |
2012年02月19日.23:48:54 |
| SpamBayes Score |
0.11799831 |
| Marked as misclassified |
No |
| Message-id |
<1329695334.94.0.0508619464928.issue14057@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To speed up python -s, the following patch avoids loading the sysconfig module:
diff --git a/Lib/site.py b/Lib/site.py
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -518,7 +518,8 @@ def main():
known_paths = removeduppaths()
if ENABLE_USER_SITE is None:
ENABLE_USER_SITE = check_enableusersite()
- known_paths = addusersitepackages(known_paths)
+ if ENABLE_USER_SITE:
+ known_paths = addusersitepackages(known_paths)
known_paths = addsitepackages(known_paths)
if sys.platform == 'os2emx':
setBEGINLIBPATH()
I don't know if this patch is correct. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月19日 23:48:55 | vstinner | set | recipients:
+ vstinner, pitrou, tarek, eric.araujo, neologix |
| 2012年02月19日 23:48:54 | vstinner | set | messageid: <1329695334.94.0.0508619464928.issue14057@psf.upfronthosting.co.za> |
| 2012年02月19日 23:48:54 | vstinner | link | issue14057 messages |
| 2012年02月19日 23:48:54 | vstinner | create |
|