[Pyrex] proper way of setting up Pyrex compile environment

Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 19 00:34:01 UTC 2007


Brian Blais wrote:
> Currently, I copy the 
> c_numpy.pxd and the c_python.pxd into the project directory, and then I make a link 
> to /usr/local/lib/python2.5/site-packages/numpy/core/include/numpy/ in the project 
> directory, to deal with the include files.

I don't know about NumPy, but Numeric installs its
include files under the Python include directory, so
you don't normally have to do anything special about
them.

Currently you're on your own regarding the .pxd files,
though, since distutils doesn't yet know about Pyrex
include directories.

--
Greg



More information about the Pyrex mailing list