Commit 1b4b7af1 authored by Berker Peksag's avatar Berker Peksag

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

Patch by Jonathan Hosmer.
parent e430073f
...@@ -582,6 +582,7 @@ Randall Hopper ...@@ -582,6 +582,7 @@ Randall Hopper
Nadav Horesh Nadav Horesh
Alon Horev Alon Horev
Jan Hosang Jan Hosang
Jonathan Hosmer
Alan Hourihane Alan Hourihane
Ken Howard Ken Howard
Brad Howes Brad Howes
......
...@@ -205,6 +205,9 @@ Tests ...@@ -205,6 +205,9 @@ Tests
Build 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 - The documentation Makefile no longer automatically downloads Sphinx. Users are
now required to have Sphinx already installed to build the documentation. now required to have Sphinx already installed to build the documentation.
......
...@@ -250,7 +250,9 @@ class PyBuildExt(build_ext): ...@@ -250,7 +250,9 @@ class PyBuildExt(build_ext):
build_ext.build_extensions(self) 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: if self.failed:
longest = max(longest, max([len(name) for name in self.failed])) longest = max(longest, max([len(name) for name in self.failed]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment