Commit 224c9e52 authored by Adam Groszer's avatar Adam Groszer

windows: scripts are implemented with 2 files, avoid burping on that

parent 9c12d6a1
......@@ -4,7 +4,10 @@ Change History
2.7.2 (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.7.1 (2017-01-31)
......
......@@ -1107,6 +1107,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