[SciPy-user] building 64bit scipy

Dan Yamins dyamins@gmail....
Mon Apr 20 10:20:53 CDT 2009

On Mon, Apr 20, 2009 at 9:53 AM, David Cournapeau <
david@ar.media.kyoto-u.ac.jp> wrote:

> Hi Dan,
> Dan Yamins wrote:
> > Hi,
> >
> > I'm trying to build scipy 64bit binaries.  I'm on OS10.5.6, and using
> > python2.6 built as 64bit universal from macports.
> >
> > When I run:
> >     python2.6 setup.py install
> >
> > the build doesn't fail along the way.
> >
> > However, when I then go into python and try something, e.g. "from
> > scipy import linalg",  I get the error
> That's because the fortran compiler flags do not handle the x86_64 arch.
> As there is no official 64 bits build for python yet, it is a bit
> difficult to test. In the meantime, I managed to build a 64 bits version
> of python 2.6.2, and built numpy and scipy on it.

Yes -- this is exactly what I figured, since I could see that during the
scipy build, the fortran compiler wasn't getting the -arch x86_64 flag.

> Nothing is needed for
> numpy,

Precisely. I built numpy 1.3.0 first before trying scipy, the build worked
perfectly, and passed all the tests.    I guess this is either be because
only the C compiler is being used (and it is, even in the scipy build,
getting the right arch flag), or because for some reason any use of the
fortran compiler is being called with the right flags?

> and for scipy, you will want something like
> LDFLAGS="-arch x86_64 -undefined dynamic_lookup -bundle" FFLAGS="-arch
> x86_64 -O2 -Wall -fPIC" python setup.py install

So are you saying that I should
  1)  find and edit the LDFLAGS and FFLAGS lines of Make file with the
options shown above, and
  2) then do "python26 setup.py install" at the shell


  just execute the command

     LDFLAGS="-arch x86_64 -undefined dynamic_lookup -bundle" FFLAGS="-arch
x86_64 -O2 -Wall -fPIC" python26 setup.py install

 at the shell?

Sorry for this question and my ignorance.

Thanks very much for your help (I really had been struggling with this)!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20090420/9489dda9/attachment-0001.html 

More information about the SciPy-user mailing list