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

Zachary Pincus zpincus at stanford.edu
Sun Jan 15 00:24:01 CST 2006

Hello folks,

I'm quite excited about the new release of numpy -- thanks for all  
the work.

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

My old installation of Numeric placed the arrayobject.h (etc.) header  
files here:

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:

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  

I'm writing some code which I hope to be compatible with Numeric,  
numarray, and numpy; being able to reliably find arrayobject.h is  
pretty important for this. Thus, it would be good to know where, in  
general, this file will be installed by numpy.


Zach Pincus

Program in Biomedical Informatics and Department of Biochemistry
Stanford University School of Medicine

More information about the Numpy-discussion mailing list