Message153737
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. |
|
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 | |
|