Ticket #9808: spkg.diff

File spkg.diff, 1.2 KB (added by maldun, 11 years ago)

Diff of the spkg installs; The lines wich concern config fc are removed due problems in ubuntu

  • spkg-install

    old new  
    11#!/bin/sh
    2 
    3 
    4 
    5 
    6 ./copy_patches.pl
    7 
    82# These flags confuse numpy's distutils.   In particular,
    93# if they are set empty bad things happen.
    104
    11 unset CFLAGS LDFLAGS CXXFLAGS SHAREDFLAGS
     5unset CFLAGS CXXFLAGS SHAREDFLAGS
    126
    137if [ `uname` = "Darwin" ]; then
    148    unset ATLAS
    159    unset BLAS
    1610    unset LAPACK
     11    export LDFLAGS="-bundle -undefined dynamic_lookup"
    1712else
    1813    ATLAS="$SAGE_LOCAL" 
    1914    export ATLAS
     
    2116    export BLAS
    2217    LAPACK="$SAGE_LOCAL"
    2318    export LAPACK
     19    export LDFLAGS="-shared"
    2420fi
    25 
     21export FC="${SAGE_LOCAL}/bin/sage_fortran"
     22export SCIPY_FCONFIG="config_fc --noopt --noarch"
    2623
    2724# This avoid problems on some systems -- until we officially
    2825# support umfpack (which we will likely do, since cvxopt
     
    4239fi
    4340
    4441# Build
    45 python setup.py build
     42python setup.py build "${SCIPY_FCONFIG}"
    4643if [ $? -ne 0 ]; then
    4744    echo "Error building scipy."
    4845    exit 1
    4946fi
    5047
    5148# Intall
    52 python setup.py install
     49python setup.py install "${SCIPY_FCONFIG}"
    5350if [ $? -ne 0 ]; then
    5451    echo "Error installing scipy."
    5552    exit 1