[Numpy-discussion] Building shared libraries with numpy.distutils

Robert Kern robert.kern at gmail.com
Fri Jun 9 22:12:02 EDT 2006

Albert Strasheim wrote:
> Hello all
> For my Summer of Code project, I'm adding Support Vector Machine code to
> SciPy. Underneath, I'm currently using libsvm. Thus far, I've been compiling
> libsvm as a shared library (DLL on Windows) using SCons and doing the
> wrapping with ctypes.
> Now, I would like to integrate my code into the SciPy build. Unfortunately,
> it doesn't seem as if numpy.distutils or distutils proper knows about
> building shared libraries.
> Building shared libraries across multiple platforms is tricky to say the
> least so I don't know if implementing this functionality again is something
> worth doing. The alternative -- never using shared libraries, doesn't seem
> very appealing either.
> Is anybody building shared libraries? Any code or comments?

Ed Schofield worked out a way:


You'll have some experimenting to do, but the basics are there.

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