[Python-modules-team] Bug#589592: numpy.get_include() returns the wrong string
Ondrej Certik
ondrej at certik.cz
Tue Jul 20 20:26:44 UTC 2010
On Tue, Jul 20, 2010 at 4:16 AM, David Ham <David.Ham at imperial.ac.uk> wrote:
> I think this error is similar to one I am seeing and it appears to be caused
> by numpy.get_include() returning the wrong string.
>
> python -c 'import numpy; print numpy.get_include()'
>
> produces:
>
> /usr/lib/pymodules/python2.6/numpy/core/include
>
> but _numpyconfig.h and indeed all other header files under that path are
> actually in:
>
> /usr/lib/pymodules/python2.6/numpy/core/include/numpy
Well, but for example if you use the numpy support in Cython, the
autogenerated .c files include the headers like this:
#include "numpy/arrayobject.h"
so I think the get_include() function is correct. I mean it depends on
the convention of course.
Ondrej
More information about the Python-modules-team
mailing list