diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-07 16:50:43 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-07 16:50:43 -0500 |
| commit | 278e027348f52fc0dfc7ac6046fd169632922bb1 (patch) | |
| tree | ab7a3b10c25421a3a040b0fa2c163e4fa380767f /setuptools/command/install_scripts.py | |
| parent | c5958f26680b8bfad10d0ec03a613725c9a4c580 (diff) | |
| parent | 25edd1951d8d44c34578c926f5c20ed3d452587b (diff) | |
| download | python-setuptools-git-278e027348f52fc0dfc7ac6046fd169632922bb1.tar.gz | |
Merge branch 'master' into patch-1
Diffstat (limited to 'setuptools/command/install_scripts.py')
| -rw-r--r-- | setuptools/command/install_scripts.py | 7 |
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" |
