Issue #16537: Check whether self.extensions is empty in setup.py.

Patch by Jonathan Hosmer.
This commit is contained in:
Berker Peksag 2014-09-27 22:55:10 +03:00
parent e430073fe7
commit 1b4b7af1d1
3 changed files with 7 additions and 1 deletions

View File

@ -582,6 +582,7 @@ Randall Hopper
Nadav Horesh
Alon Horev
Jan Hosang
Jonathan Hosmer
Alan Hourihane
Ken Howard
Brad Howes

View File

@ -205,6 +205,9 @@ Tests
Build
-----
- Issue #16537: Check whether self.extensions is empty in setup.py. Patch by
Jonathan Hosmer.
- The documentation Makefile no longer automatically downloads Sphinx. Users are
now required to have Sphinx already installed to build the documentation.

View File

@ -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]))