Sample distutil setup.py script that uses SWIG and C++?

Kevin Dahlhausen kdahlhaus at yahoo.com
Mon Sep 13 08:34:05 EDT 2004


Could anyone post a simple setup.py script that uses a SWIG interface
to C++ code  and the mingw compiler?

I followed some online samples, and am using the setup.cfg file to
specify swig-c++=1.

Trying to build using mingw out of the cygwin environment but the
final call to link the extension calls directly to 'cc' which I think
should really be g++ at that point.

Did get everything to build with a Makefile, but that's not the right
way to go.



More information about the Python-list mailing list