diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-09-27 19:55:10 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-09-27 19:55:10 (GMT) |
commit | 1b4b7af1d1353ac2eaaa65bee69a750b5d249e95 (patch) | |
tree | d24feff9868b6ba7fd5a70e9daa9212eb1b4228d /setup.py | |
parent | e430073fe739cbba200742ed9e884d4a067bd0d0 (diff) | |
download | cpython-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.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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])) |