diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 19:54:01 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 19:54:01 -0500 |
commit | 0a0f7d5816fa7e42fd787d4923265adc965e1360 (patch) | |
tree | cc65229bb9573084924d5ae201f0e8dcf26e9708 | |
parent | 0d32bf350dce5cf21c821b9216799fa53550c5c1 (diff) | |
download | external_python_setuptools-0a0f7d5816fa7e42fd787d4923265adc965e1360.tar.gz external_python_setuptools-0a0f7d5816fa7e42fd787d4923265adc965e1360.tar.bz2 external_python_setuptools-0a0f7d5816fa7e42fd787d4923265adc965e1360.zip |
Defer resolution of the CommandSpec and do it exactly once.
-rwxr-xr-x | setuptools/command/install_scripts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py index f85f4520..af079fbb 100755 --- a/setuptools/command/install_scripts.py +++ b/setuptools/command/install_scripts.py @@ -31,13 +31,13 @@ class install_scripts(orig.install_scripts): ) bs_cmd = self.get_finalized_command('build_scripts') exec_param = getattr(bs_cmd, 'executable', None) - cmd = ei.CommandSpec.from_param(exec_param) bw_cmd = self.get_finalized_command("bdist_wininst") is_wininst = getattr(bw_cmd, '_is_running', False) writer = ei.ScriptWriter if is_wininst: - cmd = ei.CommandSpec.from_string("python.exe") + exec_param = "python.exe" writer = ei.WindowsScriptWriter + cmd = ei.CommandSpec.from_param(exec_param) for args in writer.best().get_args(dist, cmd.as_header()): self.write_script(*args) |