[SciPy-user] Numpy distutils failing to report ndarrayobject.h
Fri Mar 23 12:25:45 CDT 2007
Anand Patil wrote:
>The following in a Pyrex extension module:
>cdef extern from "numpy/ndarrayobject.h":
> void* PyArray_DATA(object obj)
>produces the following in C:
>The numpy distutils apparently fail to compile the extension module
>under win2k, Python 2.4:
>PyMC2/PyrexLazyFunction.c:15:33: numpy/ndarrayobject.h: No such file or directory
>PyMC2/PyrexLazyFunction.c: In function
>but it compiles fine on my machine, running OSX 10.4 and Python 2.5.
>Unfortunately I can't experiment much because I don't have a Windows
>machine available. Can anyone help me out with this?
The include directory is not in the list of directories to search for
the header files and so it is not being found. I'm not sure what would
cause this. It's possible that the windows system doesn't have NumPy
installed (or else the headers are not installed). Or, it's possible
that numpy.distutils is not adding the NumPy directory to the list of
directories to search for header files.
I'm not sure why it's not adding the location of the NumPy headers to
the compile line.
>SciPy-user mailing list
More information about the SciPy-user