[SciPy-dev] File swig_num_gen.py, anyone?
Fernando Perez
Fernando.Perez at colorado.edu
Thu Jul 28 02:02:43 EDT 2005
Hi all,
I need to wrap some C code and I want to allow it to use Numeric arrays. The
swig_num.i file, which is in scipy's Lib/cluster/src directory, seems like a
useful tool for this task. But if I try to use it, I get a swath of swig
deprecation warnings, along with a few errors.
I'd rather not fix that .i file by hand, b/c it carries at the top this warning:
/************************************************************************/
/* swig_num.i -- typemaps for mapping C arrays to Python Numeric arrays */
/* */
/* This file is auto-generated by swig_num_gen.py. */
/* DO NOT EDIT THIS FILE DIRECTLY unless you want your changes */
/* clobbered by the next run of the generator. */
/************************************************************************/
Unfortunately the file swig_num_gen.py seems to have gone AWOL. Google
doesn't find it, and not even a locate call directly at the scipy.org server
(while ssh'd in) finds it, so it seems not even to be in the bowels of the CVS
repo.
Does anybody have an idea of where that file is? I'd rather work on fixing
the code generator rather than the final .i file, especially because the
zillion warnings are of only 2 kinds, and I'm pretty sure fixing each at the
source would involve fixing only one pattern.
Alternatively, if anybody has a good set of typemaps to use swig with Numeric
which they can pass my way, I'll be very grateful.
Cheers,
f
More information about the SciPy-Dev
mailing list