summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-10-14 10:02:08 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2004-10-14 10:02:08 (GMT)
commita024034b94983c586b3764cf510d2a2f62ad5624 (patch)
treec94125196f2dc579b0143754e44b65bbe17e5753 /Lib/distutils/extension.py
parent78f58abea7c1b90499a965634488c525b73adba8 (diff)
downloadcpython-a024034b94983c586b3764cf510d2a2f62ad5624.zip
cpython-a024034b94983c586b3764cf510d2a2f62ad5624.tar.gz
cpython-a024034b94983c586b3764cf510d2a2f62ad5624.tar.bz2
Patch 1046644 - improved distutils support for SWIG.
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r--Lib/distutils/extension.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py
index e69f3e9..440d128 100644
--- a/Lib/distutils/extension.py
+++ b/Lib/distutils/extension.py
@@ -75,6 +75,9 @@ class Extension:
used on all platforms, and not generally necessary for Python
extensions, which typically export exactly one symbol: "init" +
extension_name.
+ swig_opts : [string]
+ any extra options to pass to SWIG if a source file has the .i
+ extension.
depends : [string]
list of files that the extension depends on
language : string
@@ -95,6 +98,7 @@ class Extension:
extra_compile_args=None,
extra_link_args=None,
export_symbols=None,
+ swig_opts = None,
depends=None,
language=None,
**kw # To catch unknown keywords
@@ -116,6 +120,7 @@ class Extension:
self.extra_compile_args = extra_compile_args or []
self.extra_link_args = extra_link_args or []
self.export_symbols = export_symbols or []
+ self.swig_opts = swig_opts or []
self.depends = depends or []
self.language = language