mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Issue #16537: Check whether self.extensions is empty in setup.py.
Patch by Jonathan Hosmer.
This commit is contained in:
parent
1f3a88fe55
commit
21c8d5c7d9
@ -588,6 +588,7 @@ Randall Hopper
|
||||
Nadav Horesh
|
||||
Alon Horev
|
||||
Jan Hosang
|
||||
Jonathan Hosmer
|
||||
Alan Hourihane
|
||||
Ken Howard
|
||||
Brad Howes
|
||||
|
@ -15,6 +15,12 @@ Library
|
||||
- Issue #22448: Improve canceled timer handles cleanup to prevent
|
||||
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?
|
||||
===========================
|
||||
|
4
setup.py
4
setup.py
@ -252,7 +252,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]))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user