Re: [Numpy-discussion] distributing pre-compiled f2py extensions on OSX
Thanks for the reply, Ralf. Can you point me a bit in the right direction. Scipy is pretty big. Thanks, Mark ------------------------------
Message: 2 Date: Sat, 25 Feb 2012 11:16:50 +0100 From: Ralf Gommers <ralf.gommers@googlemail.com> Subject: Re: [Numpy-discussion] distributing pre-compiled f2py extensions on OSX To: Discussion of Numerical Python <numpy-discussion@scipy.org> Message-ID: <CABL7CQiBO35Lo=VhZY4MnLs7KS3-322gTMDz_6qEBF+SJbHr6w@mail.gmail.com
Content-Type: text/plain; charset="iso-8859-1"
On Fri, Feb 24, 2012 at 3:39 PM, Mark Bakker <markbak@gmail.com> wrote:
Two short questions:
1. When I distribute pre-compiled f2py extensions for OSX, it seems that the users need gfortran installed, else it cannot find libgfortran.3.dylib. Is there a way to link that file with the extension?
You can look at how this is done in Scipy.
2. Should extensions compiled on Snowleopard work on Lion?
Yes.
Ralf
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
participants (2)
-
Mark Bakker -
Ralf Gommers