[Numpy-discussion] header file location upon installation

Robert Kern robert.kern@gmail....
Sun Mar 25 16:44:30 CDT 2007


Daniel Wheeler wrote:
> Hi,
> 
> Should the header files in 
> 
>         .../lib/python2.4/site-packages/python/numpy/core/include/
> 
> be copied to
> 
>        .../include/python2.4/numpy/
> 
> upon installation of numpy?

No. For reasons that we've discussed several times here, the only reliable place
to keep headers is in the package itself. Some users don't have write access to
sys.prefix and some users use eggs and/or have multiple versions of numpy
installed at any one time.

For building extensions, either use numpy.distutils, which will take care of
everything for you, or use numpy.get_include() to get the directory with headers.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the Numpy-discussion mailing list