[Numpy-discussion] arrayobject.h (and friends) install location

pearu at cens.ioc.ee pearu at cens.ioc.ee
Sun Jan 15 04:24:01 CST 2006


On Sun, 15 Jan 2006, Zachary Pincus wrote:

> One question: where should I expect the arrayobject.h file to be  
> installed?

numpy/arrayobject.h is installed to numpy.get_numpy_include().

> My old installation of Numeric placed the arrayobject.h (etc.) header  
> files here:
> /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ 
> Numeric/
> 
> I'm on OS X, using the standard 'framework' build of python, which  
> accounts for the particular install path. However, this is the proper  
> include path for python-related C headers.
> 
> When I installed numpy, arrayobject.h was placed here, in the site- 
> packages directory:
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
> packages/numpy/core/include/numpy/arrayobject.h
> 
> My question: is this an error (possibly specific to OS X) and the  
> numpy headers should have been placed with the other C headers? Or is  
> this a policy change which puts the headers in the site-packages  
> directory?

This is not an error. Use numpy.get_numpy_include() to retrive the
directory of numpy header files. See numpy.get_numpy_include.__doc__
for more information.

HTH,
Pearu





More information about the Numpy-discussion mailing list