[Numpy-discussion] how to include numpy headers when building an extension?

Christopher Barker Chris.Barker@noaa....
Mon Sep 10 18:56:28 CDT 2007


Hi all,

I'm porting an extension from Numeric. At the top, I've changed:

#include <Numeric/arrayobject.h>

to

#include <numpy/arrayobject.h>

But distutils can't find numpy/arrayobject.h -- how do I tell distutils 
where to look for it? I've gotten it to work by hard-coding the entire 
path, but that's not very portable.

It looks like Numeric used to put its headers in a standard location, 
but that numpy buries them deeper.

thanks,
-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list