SWIG+Distutils - no harmony?
Thomas Heller
thomas.heller at ion-tof.com
Fri Jan 18 16:16:31 EST 2002
"Martin Bless" <m.bless at gmx.de> wrote in message news:3c48fd83.11695897 at news.muenster.de...
> It's working now. Here's what I changed to get things going:
>
> >----------<>----------<>----------<
> I changed two lines in distutils.command.build_ext.py
>
> (1) in function
> def swig_sources (self, sources):
> [...]
> #new_sources.append(base + target_ext) #old
> new_sources.append(base + '_wrap' + target_ext) #new
>
> This prevents the C-source from getting overwritten.
> Adding '_wrap' to the base is the naming convention SWIG 1.3 employs
> anyway if not told otherwise.
>
> (2) I use a different SWIG commandline. Second change:
>
> #swig_cmd = [swig, "-python", "-dnone", "-ISWIG"] #old
> swig_cmd = [swig, "-python"] #new
>
> >----------<>----------<>----------<
Martin,
I've checked in exactly your changes.
Thanks,
Thomas
More information about the Python-list
mailing list