[Distutils] Duelling SWIG patches

Michael Muller mmuller@enduden.com
Thu, 22 Jun 2000 20:26:07 -0400

Greg Ward wrote:
> OS-agnostic, but is C-centric.  Is it possible to tell from a SWIG .i
> file whether it is destined to be C or C++?  I can't think of a good way

I'm pretty sure that the only way to do this short of parsing the file is to
run "swig" with no options and then (if it fails) run "swig -c++" (enabling 
the C++ processing features).  This seems more like something you'd want to
do during configuration then during the build.

Maybe it would be best to adopt a convention for SWIG files in distutils
(uppercase ".I" in C++, maybe?) or find some other way to allow the user to
explicitly indicate a C++ file.

michaelMuller = mmuller@enduden.com | http://www.cloud9.net/~proteus
We are explorers in the further reaches of experience: demons to some, angels
to others.  - "Pinhead" from "Hellraiser"