aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install_scripts.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-03-21 05:55:44 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-03-21 05:55:44 -0400
commitcfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7 (patch)
tree1551248b2a29b34b26388ea68fe994854f3e84e2 /setuptools/command/install_scripts.py
parent7843688bc33dd4e13e10130bc49da4c290fe7d7f (diff)
parent060445bfb557a1d0f6b726716dafa6bacaa44c34 (diff)
downloadexternal_python_setuptools-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.tar.gz
external_python_setuptools-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.tar.bz2
external_python_setuptools-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.zip
Merge branch 'master' into jorikdima-master
Diffstat (limited to 'setuptools/command/install_scripts.py')
-rw-r--r--setuptools/command/install_scripts.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py
index 16234273..8c9a15e2 100644
--- a/setuptools/command/install_scripts.py
+++ b/setuptools/command/install_scripts.py
@@ -32,8 +32,11 @@ class install_scripts(orig.install_scripts):
)
bs_cmd = self.get_finalized_command('build_scripts')
exec_param = getattr(bs_cmd, 'executable', None)
- bw_cmd = self.get_finalized_command("bdist_wininst")
- is_wininst = getattr(bw_cmd, '_is_running', False)
+ try:
+ bw_cmd = self.get_finalized_command("bdist_wininst")
+ is_wininst = getattr(bw_cmd, '_is_running', False)
+ except ImportError:
+ is_wininst = False
writer = ei.ScriptWriter
if is_wininst:
exec_param = "python.exe"