[SciPy-dev] patch to fix numpy PyArray_GetNDArrayCVersion() implementation

Travis Oliphant oliphant.travis at ieee.org
Mon Jan 23 23:45:51 CST 2006

Andrew Straw wrote:

> OK, since no one seems to be biting, let me include the full source 
> and setup.py so that anyone can see the problem by doing a simple 
> "python setup.py build".
> Andrew Straw wrote:
>> With current NumPy, the following file will no longer compile as C++:
>> #include "Python.h"
>> #include <X11/Xlib.h>
>> #define PY_ARRAY_TYPES_PREFIX SomeUnlikelyString
>> #include "numpy/arrayobject.h"
>> Here's an extract from the build log:
I think this has to do with the use of the C-API auto generator but I'm 
not sure.

So, now I'm concerned about the use of the Bool variable in a few of the 
API calls.

I applied your patch in SVN.


More information about the Scipy-dev mailing list