[Patches] [Patch #101904] Better SWIG with C++ support
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 16 Oct 2000 07:11:40 -0700
Patch #101904 has been updated.
Project:
Category: distutils
Status: Open
Summary: Better SWIG with C++ support
Follow-Ups:
Date: 2000-Oct-13 23:07
By: jgbauman
Comment:
I had troubles with distutils 1.0 and the way I use SWIG.
I couldn't find any support for the -shadow option and no way to pass an
extra include dir to swig (like itīs possible for the c compiler)
Therefore I wrote a patch.
It adds an extra_swig_args (list of string) option to Extension.
All the strings are passed to swig without modification, but
if extra_swig_args contains "-c++" or "-shadow" there is some special
action:
"-c++": behaves like build_ext --swig-cpp
"-shadow":
Normally swig generates a file:
foo.c -> foo.so
In this case SWIG generates two files:
foo.py (python shadow classes, imports fooc)
fooc.c -> fooc.so
With this patch build_ext can handle this und generates for foo.i
(foo.py, fooc.c) compiles them and installs them.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=101904&group_id=5470