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
Nadav Horesh
Alon Horev
Jan Hosang
Jonathan Hosmer
Alan Hourihane
Ken Howard
Brad Howes
......
......@@ -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.
......
......@@ -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]))
......
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