diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-03-31 22:37:55 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-03-31 22:37:55 (GMT) |
commit | b2e36f1df7cbc06134464bfcc1e48936e80e91fa (patch) | |
tree | b378116a4b453fd0044baabf0b14f39b8dab2f19 /Lib/distutils/extension.py | |
parent | a931404804bd2243ae549af5e102860a68eb5fca (diff) | |
download | cpython-b2e36f1df7cbc06134464bfcc1e48936e80e91fa.zip cpython-b2e36f1df7cbc06134464bfcc1e48936e80e91fa.tar.gz cpython-b2e36f1df7cbc06134464bfcc1e48936e80e91fa.tar.bz2 |
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
........
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r-- | Lib/distutils/extension.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py index b271816..f7e7b4e 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -82,6 +82,9 @@ class Extension: language : string extension language (i.e. "c", "c++", "objc"). Will be detected from the source extensions if not provided. + optional : boolean + specifies that a build failure in the extension should not abort the + build process, but simply not install the failing extension. """ # When adding arguments to this constructor, be sure to update @@ -100,6 +103,7 @@ class Extension: swig_opts = None, depends=None, language=None, + optional=None, **kw # To catch unknown keywords ): assert isinstance(name, str), "'name' must be a string" @@ -122,6 +126,7 @@ class Extension: self.swig_opts = swig_opts or [] self.depends = depends or [] self.language = language + self.optional = optional # If there are unknown keyword options, warn about them if len(kw): |