[Numpy-tickets] [NumPy] #306: Location of arrayobject.h

NumPy numpy-tickets at scipy.net
Mon Oct 2 10:32:48 CDT 2006


#306: Location of arrayobject.h
--------------------+-------------------------------------------------------
 Reporter:  gpk     |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 When numpy-1.0rc1 is installed via
 python setup.py install --prefix=$HOME/local
 (HOME=/users/gpk)
 when python 2.5 is installed in
 $HOME/local,
 then arrayobject.h ends up in a rather deep location:
 /users/gpk/local/lib/python2.5/site-
 packages/numpy/core/include/numpy/arrayobject.h
  .

 That'd be OK, except that when one tries to install another package
 via
 python setup.py gpk_img_python --prefix=$HOME/local
 the search path for gcc does not include anything near to the actual
 location of arrayobjects.h.

 I get this:

 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
 prototypes -fPIC -I/users/gpk/local/include -I/users/gpk/local/include
 -I/users/gpk/include -I/users/gpk/local/include/python2.5 -c gpk_avg_py.cc
 -o build/temp.linux-x86_64-2.5/gpk_avg_py.o


 So, in the C-extension, I would have to
 #include <site-packages/numpy/core/include/numpy/arrayobject.h>
 which seems a bit cumbersome.

 This might be a distutils problem, in that .../site-packages is not
 searched.   However, it also seems to be a poor choice of a
 location for arrayobject.h

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/306>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list