summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-21 00:49:45 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-21 00:49:45 +0000
commit2a8ed3cc6b73dfe63fe6d8c2f72229290549887b (patch)
tree1852769430e4dec301dfe46977b84fa86cd84663 /setuptools/command/easy_install.py
parent89ff5b184629d1bafd55342ad5eeb1dccc4b2956 (diff)
downloadpython-setuptools-git-2a8ed3cc6b73dfe63fe6d8c2f72229290549887b.tar.gz
Fixed installing extra ``.pyc`` or ``.pyo`` files for scripts with ``.py``
extensions. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041139
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 95fa30a3..37aa496a 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -822,7 +822,7 @@ PYTHONPATH, or by being added to sys.path by your code.)
to_compile = []
def pf(src,dst):
- if dst.endswith('.py'):
+ if dst.endswith('.py') and not src.startswith('EGG-INFO/'):
to_compile.append(dst)
self.unpack_progress(src,dst)
return not self.dry_run and dst or None