
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. N On Apr 28, 2014, at 9:53 AM, Robert Kern <robert.kern@gmail.com> wrote:
On Mon, Apr 28, 2014 at 4:46 PM, Nathan Woods <charlesnwoods@gmail.com> wrote:
Anyone? Anyone?
From the lack of response to my email two weeks ago, I guess that there isn't really a good way to distribute a library function for testing. When ctypes functionality was initially included, the test function used was part of the standard library, to avoid this same problem. I propose that we therefore do one of two things.
The stdlib tests ctypes by building a Python extension module `_ctypes_test` along with all of the other stdlib extension modules. It is careful to `EXPORT` all of the symbols that will be needed. We could do the same here. We will just have an extra _private extension module built along with all of the others while scipy is building. It will not be compiled during the unit test.
http://hg.python.org/cpython/file/a14012352f65/Modules/_ctypes/_ctypes_test.... http://hg.python.org/cpython/file/a14012352f65/Lib/ctypes/test/test_cfuncs.p...
-- Robert Kern _______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev