diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 19:45:22 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 19:45:22 -0500 |
commit | 3267bace7f17729da7063ecfe5d3bb9bfe819bc4 (patch) | |
tree | e363bc3da7d0b3de52336b153291e79b4c4e710c | |
parent | 399cc08b99993c15a8066d72114399149303d487 (diff) | |
download | python-setuptools-bitbucket-3267bace7f17729da7063ecfe5d3bb9bfe819bc4.tar.gz |
Extract variable for bdist_wininst command
-rwxr-xr-x | setuptools/command/install_scripts.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py index ad89c5fd..cad524ec 100755 --- a/setuptools/command/install_scripts.py +++ b/setuptools/command/install_scripts.py @@ -31,9 +31,8 @@ class install_scripts(orig.install_scripts): ) bs_cmd = self.get_finalized_command('build_scripts') cmd = ei.CommandSpec.from_param(getattr(bs_cmd, 'executable', None)) - is_wininst = getattr( - self.get_finalized_command("bdist_wininst"), '_is_running', False - ) + 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") |