[Numpy-discussion] numpy.distutils and shared libraries

Robert Kern robert.kern@gmail....
Fri Jan 30 18:21:30 CST 2009

On Fri, Jan 30, 2009 at 18:13, Brian Granger <ellisonbg.net@gmail.com> wrote:
> Hi,
> 2 ?'s about numpy.distutils:
> 1.
> I am using config.add_library to build a c++ library that I will link
> into some Cython extensions.  This is working fine and generating a .a
> library for me.  However, I need a shared library instead.  Is this
> possible with numpy.distutils or will I need something like numscons?

numscons or you can adapt the code from OOF2 and contribute it to

> 2.
> When calling add_library, what is the difference between the depends
> and headers arguments?

headers get installed via the distutils install_headers command. This
will install the headers ... somewhere. Not exactly sure.

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