[Numpy-discussion] C-API support for numarray added to NumPy

Travis Oliphant oliphant.travis at ieee.org
Tue Jun 20 04:06:11 CDT 2006


C-API support for numarray is now checked in to NumPy SVN. 

With this support you should be able to compile numarray extensions by 
changing the include line from numarray/libnumarray.h to numpy/libnumarray.h

You will also need to change the include directories used in compiling 
by appending the directories returned by 
numpy.numarray.util.get_numarray_include_dirs()

This is most easily done using a numpy.distutils.misc_util Configuration 
instance:

config.add_numarray_include_dirs()

The work is heavily based on numarray.  I just grabbed the numarray 
sources and translated the relevant functions to use NumPy's ndarray's. 

Please report problems and post patches.

-Travis





More information about the Numpy-discussion mailing list