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

Adam Mercer ramercer at gmail.com
Tue Nov 20 09:03:35 EST 2007


Hi

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?

Cheers

Adam

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



More information about the SciPy-User mailing list