Commit 21c8d5c7 authored by Berker Peksag's avatar Berker Peksag

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

Patch by Jonathan Hosmer.
parent 1f3a88fe
...@@ -588,6 +588,7 @@ Randall Hopper ...@@ -588,6 +588,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
......
...@@ -15,6 +15,12 @@ Library ...@@ -15,6 +15,12 @@ Library
- Issue #22448: Improve canceled timer handles cleanup to prevent - Issue #22448: Improve canceled timer handles cleanup to prevent
unbound memory usage. Patch by Joshua Moore-Oliva. unbound memory usage. Patch by Joshua Moore-Oliva.
Build
-----
- Issue #16537: Check whether self.extensions is empty in setup.py. Patch by
Jonathan Hosmer.
What's New in Python 3.4.2? What's New in Python 3.4.2?
=========================== ===========================
......
...@@ -252,7 +252,9 @@ class PyBuildExt(build_ext): ...@@ -252,7 +252,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