[SciPy-user] 64-Bit Scipy on OS X

atmyers@berkele... atmyers@berkele...
Thu Jul 23 23:10:41 CDT 2009


Hello All,

I have successfully built numpy 1.3.0 with a 64-bit installation of Python
2.6. I am trying to do the same with scipy-0.7.1, but I seem to be having
the same problem as Dan Yamis <a
href="http://www.nabble.com/building-64bit-scipy-ts23118382.html#a23118382">
here</a> - the "x86_64" flag gets passed to the c compiler just fine, but
NOT to gfortran. Consequently, the modules that don't use fortran work
just fine, but the ones that do fail to import.

The solution that worked for Dan:

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

does not work for me. The output of python setup.py install still has
things like

gfortran:f77:
build/src.macosx-10.5-universal-2.6/scipy/stats/mvn-f2pywrappers.f
/usr/local/bin/gfortran -Wall -Wall -undefined dynamic_lookup -bundle
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/scipy/stats/mvnmodule.o
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/fortranobject.o
build/temp.macosx-10.5-universal-2.6/scipy/stats/mvndst.o
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/scipy/stats/mvn-f2pywrappers.o
-L/usr/local/lib/gcc/i386-apple-darwin9.0.0/4.3.0
-Lbuild/temp.macosx-10.5-universal-2.6 -lgfortran -o
build/lib.macosx-10.5-universal-2.6/scipy/stats/mvn.so

so the flag still isn't getting passed. I don't really have any experience
with this kind of thing, so I'd appreciate any help you all could offer.

Thanks,
Andrew Myers





More information about the SciPy-User mailing list