summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r--Lib/distutils/command/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py
index c6f52e61e1..a86df0bc7f 100644
--- a/Lib/distutils/command/build.py
+++ b/Lib/distutils/command/build.py
@@ -116,7 +116,7 @@ class build(Command):
self.build_scripts = os.path.join(self.build_base,
'scripts-%d.%d' % sys.version_info[:2])
- if self.executable is None:
+ if self.executable is None and sys.executable:
self.executable = os.path.normpath(sys.executable)
if isinstance(self.parallel, str):