Hi Daniel,
2009/6/16 Daniel Yarlett <[email protected]>: > ... SNIP ... > It looks like arrayobject.h is not being found, so do I need to modify > my setup.py file somehow? I'm afraid I'm not sure how to do this, so > any help would be greatly appreciated. This line in my .bashrc solves the same problem on my Mac export C_INCLUDE_PATH=/Library/Python/2.5/site-packages/numpy/core/include Or, I think you could add the same path to your definition of the Extension() in setup.py. I think you can do this: ext_modules = [Extension("neuralRoutines", ["neuralRoutines.pyx"], extra_compile_args=['-Ithe/path/you/want/here'], )] ... but I haven't checked it. > > When I search for arrayobject.h it can be found in the following > places, amongst others, on my system: > >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- >> packages/numpy/core/include/numpy/arrayobject.h >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- >> packages/numpy-1.3.0.dev6308-py2.5-macosx-10.3-i386.egg/numpy/core/ >> include/numpy/arrayobject.h >> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- >> packages/numpy/core/include/numpy/arrayobject.h >> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- >> packages/numpy-1.3.0.dev6308-py2.5-macosx-10.3-i386.egg/numpy/core/ >> include/numpy/arrayobject.h >> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- >> packages/numpy-1.4.0.dev6728-py2.5-macosx-10.3-i386.egg/numpy/core/ >> include/numpy/arrayobject.h It looks like you've got a few versions installed. You'd best figure out which one you are actually using, and delete the rest... Brett _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
