|
From: <pe...@ce...> - 2006-01-15 12:23:19
|
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 |