
All right, I think I was able to figure this out. An updated version has been added to the PR on GitHub, and it works on both Ubuntu 12.04 and OSX 10.9. Loading the library in ctypes SHOULD be straightforward in Windows as well, but we still need to check that. We’d love it if anyone could take a look at our implementation and offer comments, since it’s different from what’s done in the python standard library. Nathan Woods On Apr 29, 2014, at 2:37 AM, Robert Kern <robert.kern@gmail.com> wrote:
On Tue, Apr 29, 2014 at 4:59 AM, Nathan Woods <charlesnwoods@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 _______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev