summaryrefslogtreecommitdiff
path: root/setuptools/command/install_scripts.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-04 16:43:55 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-04 16:43:55 -0500
commitef9c3db451e2f24fc8821287e79a1ef48e0c5cf5 (patch)
tree593c1a05c19e836efb41259c76f644aa34726679 /setuptools/command/install_scripts.py
parent2170df350911390a4a9a205763475dc7a7a2fb54 (diff)
downloadpython-setuptools-git-ef9c3db451e2f24fc8821287e79a1ef48e0c5cf5.tar.gz
Move get_script_header into ScriptWriter
Diffstat (limited to 'setuptools/command/install_scripts.py')
-rwxr-xr-xsetuptools/command/install_scripts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py
index eb5ed0f2..de74145f 100755
--- a/setuptools/command/install_scripts.py
+++ b/setuptools/command/install_scripts.py
@@ -35,8 +35,10 @@ class install_scripts(orig.install_scripts):
is_wininst = getattr(
self.get_finalized_command("bdist_wininst"), '_is_running', False
)
+ if is_wininst:
+ executable = "python.exe"
writer = ScriptWriter.get_writer(force_windows=is_wininst)
- header = get_script_header("", executable, wininst=is_wininst)
+ header = get_script_header("", executable)
for args in writer._gen_args(dist, header):
self.write_script(*args)