aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2008-09-11 15:44:25 +0000
committerPJ Eby <distutils-sig@python.org>2008-09-11 15:44:25 +0000
commitfda8b67a391633a89527c1ba47e13bd39327a888 (patch)
treefd5ce47e6200fa1c0a9a9dcf7a33cc76a8b04eac
parent8b2b15294e2c3cafe791d329c3089e0631902381 (diff)
downloadexternal_python_setuptools-fda8b67a391633a89527c1ba47e13bd39327a888.tar.gz
external_python_setuptools-fda8b67a391633a89527c1ba47e13bd39327a888.tar.bz2
external_python_setuptools-fda8b67a391633a89527c1ba47e13bd39327a888.zip
Fix for http://bugs.python.org/setuptools/issue37 - missing
__loader__ running under Google App Engine. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4066389
-rw-r--r--setuptools/command/bdist_egg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 61fd6c3d..9e852a3f 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -29,7 +29,7 @@ def write_stub(resource, pyfile):
" import sys, pkg_resources, imp",
" __file__ = pkg_resources.resource_filename(__name__,%r)"
% resource,
- " del __bootstrap__, __loader__",
+ " __loader__ = None; del __bootstrap__, __loader__",
" imp.load_dynamic(__name__,__file__)",
"__bootstrap__()",
"" # terminal \n