[SciPy-user] Building with a non-standard gfortran

Adam Mercer ramercer@gmail....
Tue Nov 20 08:03:35 CST 2007


Using MacPorts, the gfortran compiler, from gcc-4.2.x, is installed as
gfortran-mp-4.2.  I have been trying to build scipy with this compiler
and found that that numpy I need to build and install with

$ python setup.py config_fc --fcompiler gnu95 \
    --f77exec /opt/local/bin/gfortran-mp-4.2 \
    --f90exec /opt/local/bin/gfortran-mp-4.2 build
$ python setup.py install --prefix=${NUMPY_LOCATION}

however using the above for scipy fails on the install phase with it
being unable to locate a fortran compiler.  I therefore need to
install scipy with

$ python setup.py config_fc --fcompiler gnu95 \
    --f77exec /opt/local/bin/gfortran-mp-4.2 \
    --f90exec /opt/local/bin/gfortran-mp-4.2 install --prefix=${SCIPY_LOCATION}

Is this expected, as I would have expected install to inherit the
options that where used during the build phase?



PS: I'm using numpy-1.0.4 and scipy-0.6.0

More information about the SciPy-user mailing list