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

Christopher Barker Chris.Barker at noaa.gov
Mon Sep 10 19:56:28 EDT 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 at noaa.gov



More information about the NumPy-Discussion mailing list