diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-03-31 22:27:23 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-03-31 22:27:23 (GMT) |
commit | 9e47ce49a06075adbc391e04b4457707fa3892a7 (patch) | |
tree | 3f45fb5a324e9dae28b8429510fca186c0716247 /Lib/distutils/extension.py | |
parent | 42f9b4e5b4fff45ef4a071112787de6b29a5099a (diff) | |
download | cpython-9e47ce49a06075adbc391e04b4457707fa3892a7.zip cpython-9e47ce49a06075adbc391e04b4457707fa3892a7.tar.gz cpython-9e47ce49a06075adbc391e04b4457707fa3892a7.tar.bz2 |
#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 440d128..c80c61e 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -83,6 +83,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 @@ -101,6 +104,7 @@ class Extension: swig_opts = None, depends=None, language=None, + optional=None, **kw # To catch unknown keywords ): assert type(name) is StringType, "'name' must be a string" @@ -123,6 +127,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): |