summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-09-27 19:55:10 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-09-27 19:55:10 (GMT)
commit1b4b7af1d1353ac2eaaa65bee69a750b5d249e95 (patch)
treed24feff9868b6ba7fd5a70e9daa9212eb1b4228d /setup.py
parente430073fe739cbba200742ed9e884d4a067bd0d0 (diff)
downloadcpython-1b4b7af1d1353ac2eaaa65bee69a750b5d249e95.zip
cpython-1b4b7af1d1353ac2eaaa65bee69a750b5d249e95.tar.gz
cpython-1b4b7af1d1353ac2eaaa65bee69a750b5d249e95.tar.bz2
Issue #16537: Check whether self.extensions is empty in setup.py.
Patch by Jonathan Hosmer.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index a46bf35..7868b7b 100644
--- a/setup.py
+++ b/setup.py
@@ -250,7 +250,9 @@ class PyBuildExt(build_ext):
build_ext.build_extensions(self)
- longest = max([len(e.name) for e in self.extensions])
+ longest = 0
+ if self.extensions:
+ longest = max([len(e.name) for e in self.extensions])
if self.failed:
longest = max(longest, max([len(name) for name in self.failed]))