summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-18 19:55:09 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-18 19:55:09 -0500
commitffc5a96a97b0ead74302529490ba231beff67885 (patch)
tree792e3cc602f19ca52b63319ea53422768690d06d
parente43d3b0acbeacba3aea066af73546c7278116a6f (diff)
downloadpython-setuptools-bitbucket-ffc5a96a97b0ead74302529490ba231beff67885.tar.gz
Extract writer resolution as a variable
-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 af079fbb..8d251ee7 100755
--- a/setuptools/command/install_scripts.py
+++ b/setuptools/command/install_scripts.py
@@ -37,8 +37,10 @@ class install_scripts(orig.install_scripts):
if is_wininst:
exec_param = "python.exe"
writer = ei.WindowsScriptWriter
+ # resolve the writer to the environment
+ writer = writer.best()
cmd = ei.CommandSpec.from_param(exec_param)
- for args in writer.best().get_args(dist, cmd.as_header()):
+ for args in writer.get_args(dist, cmd.as_header()):
self.write_script(*args)
def write_script(self, script_name, contents, mode="t", *ignored):