Commit a9ae27fd authored by Adam Groszer's avatar Adam Groszer Committed by GitHub

Merge pull request #331 from agroszer/master

windows: scripts are implemented with 2 files, avoid burping on that
parents c92f20e6 224c9e52
......@@ -4,7 +4,10 @@ Change History
2.8.1 (unreleased)
==================
- Nothing changed yet.
- Fixed a bug (windows, py 3.4)
When processing metadata on "old-style" distutils scripts, .exe stubs
appeared in ``metadata_listdir``, in turn reading those burped with
``UnicodeDecodeError``. Skipping .exe stubs now.
2.8.0 (2017-02-13)
......
......@@ -1113,6 +1113,11 @@ def scripts(reqs, working_set, executable, dest=None,
if dist.metadata_isdir('scripts/' + name):
# Probably Python 3 __pycache__ directory.
continue
if name.lower().endswith('.exe'):
# windows: scripts are implemented with 2 files
# the .exe gets also into metadata_listdir
# get_metadata chokes on the binary
continue
contents = dist.get_metadata('scripts/' + name)
distutils_scripts.append((name, contents))
elif dist.key in _develop_distutils_scripts:
......
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