Commit 3c13e2fe authored by Reinout van Rees's avatar Reinout van Rees

Added fix for issue #64

I used Marius' suggestion (with one additional fix). The issue is demonstrated
by the test in @77cd8b16. This commit fixes
the failing test.

Fixes #64
parent 77cd8b16
...@@ -913,6 +913,9 @@ def scripts(reqs, working_set, executable, dest=None, ...@@ -913,6 +913,9 @@ def scripts(reqs, working_set, executable, dest=None,
# /EGG-INFO/scripts/. # /EGG-INFO/scripts/.
if dist.metadata_isdir('scripts'): if dist.metadata_isdir('scripts'):
for name in dist.metadata_listdir('scripts'): for name in dist.metadata_listdir('scripts'):
if dist.metadata_isdir('scripts/' + name):
# Probably Python 3 __pycache__ directory.
continue
contents = dist.get_metadata('scripts/' + name) contents = dist.get_metadata('scripts/' + name)
distutils_scripts.append((name, contents)) distutils_scripts.append((name, contents))
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment