diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-09-27 19:39:38 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-09-27 19:39:38 (GMT) |
commit | a72bc8c3cff1ebcdbcbc8453c0aec62eca1fd6a1 (patch) | |
tree | dbd6d7d7067c891264fe0725c52c880a58361d11 /setup.py | |
parent | 10177be421a0f670bc219a76ffba979138a6a03a (diff) | |
parent | 21c8d5c7d90e82202f680f0b7af8b9d7c0020949 (diff) | |
download | cpython-a72bc8c3cff1ebcdbcbc8453c0aec62eca1fd6a1.zip cpython-a72bc8c3cff1ebcdbcbc8453c0aec62eca1fd6a1.tar.gz cpython-a72bc8c3cff1ebcdbcbc8453c0aec62eca1fd6a1.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
@@ -263,7 +263,9 @@ class PyBuildExt(build_ext): for ext in self.extensions: self.check_extension_import(ext) - 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 or self.failed_on_import: all_failed = self.failed + self.failed_on_import longest = max(longest, max([len(name) for name in all_failed])) |