From: Alan W. I. <ir...@be...> - 2013-10-18 16:30:46
|
On 2013-10-18 01:03-0700 Alan W. Irwin wrote: > On 2013-10-18 07:07-0000 Arjen Markus wrote: >> I removed the #define NPY_NO_DEPRECATED_API ... line from > plplotcmodule.i, even though this has been in there for a long time, > and that helped a bit: the complaints about PyArray_FLOAT are gone. > > You will probably want to restore > > #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION > > later once you figure everything out for the MSVC case. See > http://docs.scipy.org/doc/numpy-dev/reference/c-api.deprecations.html > for why we will want that #define in place. I have looked a bit more at this. That #define was put in by Andrew in revision 12340 in May this year as part of his large numeric removal and accompanying numpy fixup change. So it is not that old a change. >From his commit message it helped insure the code was clean (no compiler warnings) when compiled with numpy version 1.7, but, of course, that would only be a check of the part of our Python/numpy interface that is used in the Linux case, and from your experiences there appear to be other bits left for the Windows case that are not yet clean for numpy 1.7. For my previous tests of Python/numpy on my Debian wheezy platform, numpy is version 1.6.1, and for the MinGW/MSYS/Wine platform I chose to use numpy-1.5 so I have effectively bypassed all numpy API checks on both Linux and MinGW/MSYS/Wine. But when I move to numpy-1.7 for my python/numpy tests on MinGW/MSYS wine (hopefully later today) I anticipate I will run into the same warnings you encountered about code not being numpy-1.7 clean. With luck I should be able to fix all of those and as a result we should be clean against numpy-1.7 API in the Windows case. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |