Commit 506cb197 authored by Reinout van Rees's avatar Reinout van Rees

Fixed filename of distutils-scripts on windows.

Unlike the console-script entrypoint scripts, the distutils
scripts didn't get a -script.py appended to their name on
windows. This is now fixed.
parent c623ce01
...@@ -1020,6 +1020,8 @@ def _script(module_name, attrs, path, dest, arguments, initialization, rsetup): ...@@ -1020,6 +1020,8 @@ def _script(module_name, attrs, path, dest, arguments, initialization, rsetup):
def _distutils_script(path, dest, script_content, initialization, rsetup): def _distutils_script(path, dest, script_content, initialization, rsetup):
if is_win32:
dest += '-script.py'
lines = script_content.splitlines(True) lines = script_content.splitlines(True)
if not ('#!' in lines[0]) and ('python' in lines[0]): if not ('#!' in lines[0]) and ('python' in lines[0]):
......
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