[Python-checkins] python/dist/src/Lib/distutils core.py, 1.62, 1.63 extension.py, 1.18, 1.19

anthonybaxter at users.sourceforge.net anthonybaxter at users.sourceforge.net
Thu Oct 14 12:02:11 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4862/Lib/distutils

Modified Files:
	core.py extension.py 
Log Message:
Patch 1046644 - improved distutils support for SWIG.


Index: core.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/core.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- core.py	13 Oct 2004 12:35:27 -0000	1.62
+++ core.py	14 Oct 2004 10:02:07 -0000	1.63
@@ -54,7 +54,7 @@
                       'define_macros', 'undef_macros',
                       'library_dirs', 'libraries', 'runtime_library_dirs',
                       'extra_objects', 'extra_compile_args', 'extra_link_args',
-                      'export_symbols', 'depends', 'language')
+                      'swig_opts', 'export_symbols', 'depends', 'language')
 
 def setup (**attrs):
     """The gateway to the Distutils: do everything your setup script needs

Index: extension.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/extension.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- extension.py	27 Jan 2003 16:30:36 -0000	1.18
+++ extension.py	14 Oct 2004 10:02:08 -0000	1.19
@@ -75,6 +75,9 @@
         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 @@
                   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 @@
         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
 



More information about the Python-checkins mailing list