Commit eada97fd authored by Reinout van Rees's avatar Reinout van Rees

Merge pull request #280 from buildout/reinout-fix-279-on-windows

Fix #279 on windows
parents 28292163 928b07a4
...@@ -4,7 +4,9 @@ Change History ...@@ -4,7 +4,9 @@ Change History
2.4.7 (unreleased) 2.4.7 (unreleased)
================== ==================
- Nothing changed yet. - Fix for #279. Distutils script detection previously broke on windows with
python 3 because it errored on ``.exe`` files.
[reinout]
2.4.6 (2015-10-28) 2.4.6 (2015-10-28)
......
...@@ -904,6 +904,8 @@ def _detect_distutils_scripts(directory): ...@@ -904,6 +904,8 @@ def _detect_distutils_scripts(directory):
marker = 'EASY-INSTALL-DEV-SCRIPT' marker = 'EASY-INSTALL-DEV-SCRIPT'
scripts_found = [] scripts_found = []
for filename in dir_contents: for filename in dir_contents:
if filename.endswith('.exe'):
continue
filepath = os.path.join(directory, filename) filepath = os.path.join(directory, filename)
if not os.path.isfile(filepath): if not os.path.isfile(filepath):
continue continue
......
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