mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Merged revisions 70910 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70910 | tarek.ziade | 2009-03-31 17:27:23 -0500 (Tue, 31 Mar 2009) | 1 line #5583 Added optional Extensions in Distutils ........
This commit is contained in:
parent
a931404804
commit
b2e36f1df7
5 changed files with 41 additions and 2 deletions
|
@ -455,7 +455,13 @@ class build_ext(Command):
|
|||
self.check_extensions_list(self.extensions)
|
||||
|
||||
for ext in self.extensions:
|
||||
self.build_extension(ext)
|
||||
try:
|
||||
self.build_extension(ext)
|
||||
except (CCompilerError, DistutilsError) as e:
|
||||
if not ext.optional:
|
||||
raise
|
||||
self.warn('building extension "%s" failed: %s' %
|
||||
(ext.name, e))
|
||||
|
||||
def build_extension(self, ext):
|
||||
sources = ext.sources
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue