[SciPy-Dev] Multivariate ctypes integration PR

Robert Kern robert.kern at gmail.com
Tue Apr 29 04:37:46 EDT 2014


On Tue, Apr 29, 2014 at 4:59 AM, Nathan Woods <charlesnwoods at gmail.com> wrote:
> This sounds promising, but I will have to have a much better understanding of distutils than I do just at the moment to try it. I’ll see what I can figure out.

It's really easy. Let's say you put the test module as
scipy/integrate/_ctypes_test.c. Just take a look at
scipy/integrate/setup.py. Add a new line:

  config.add_extension('_ctypes_test', sources=['_ctypes_test.c'])

And in the scipy/integrate/bento.info:

  Extension:
      Sources: _ctypes_test.c

-- 
Robert Kern



More information about the SciPy-Dev mailing list