Swig-friendly distutils.command.build_ext

G

George Sakkis

I'm using a custom extension of the build_ext distutils 'command' that integrates better with SWIG.
Specifically, it:

1. Adds '-I' (include) swig option for each directory containing a source file in the given
Extension.
2. Determines whether to add the '-c++" option by checking the source file extensions (even if the
'swig_cpp' and 'swig_opts' do not explicitly specify that it is a c++ wrapper).
3. Builds the swig-generated high-level python module (currently only the low level .dll/.so is
built).

If these changes are generally useful, I think they (c|sh)ould make it into the next release of
distutils.

George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top