[Python-checkins]
python/nondist/sandbox/setuptools/setuptools/command
bdist_egg.py, 1.4, 1.5
pje at users.sourceforge.net
pje at users.sourceforge.net
Tue Mar 22 19:56:03 CET 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19371/setuptools/command
Modified Files:
bdist_egg.py
Log Message:
Fix bootstrap loader so extracted files don't have to be on sys.path.
Index: bdist_egg.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/bdist_egg.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- bdist_egg.py 22 Mar 2005 00:15:03 -0000 1.4
+++ bdist_egg.py 22 Mar 2005 18:55:59 -0000 1.5
@@ -74,11 +74,11 @@
f.write('\n'.join([
"def __bootstrap__():",
" global __bootstrap__, __loader__, __file__",
- " import sys, pkg_resources",
+ " import sys, pkg_resources, imp",
" __file__ = pkg_resources.resource_filename(__name__,%r)"
% resource,
" del __bootstrap__, __loader__",
- " reload(sys.modules[__name__])",
+ " imp.load_dynamic(__name__,__file__)",
"__bootstrap__()",
"" # terminal \n
]))
More information about the Python-checkins
mailing list