[Numpy-discussion] distributing pre-compiled f2py extensions on OSX

Ralf Gommers ralf.gommers@googlemail....
Sat Feb 25 16:38:47 CST 2012


On Sat, Feb 25, 2012 at 9:29 PM, Mark Bakker <markbak@gmail.com> wrote:

> Thanks for the reply, Ralf.
> Can you point me a bit in the right direction.
> Scipy is pretty big.
>

All Fortran sources in Scipy are wrapped with f2py, and can be compiled
with gfortran the way you want. As a simple example, have a look at
integrate/setup.py to see how the extension "dop" is compiled. You can
probably just use a similar config.add_library() call. If you only need the
exact compile arguments, just compile scipy and get them from the build log.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120225/d6cc371a/attachment.html 


More information about the NumPy-Discussion mailing list