Changeset 13179


Ignore:
Timestamp:
08/29/12 08:58:06 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: one step installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/scipy/install-linux64.sh

    r12825 r13179  
    11#!/bin/bash
     2set -eu
    23PYVERSION=2.7
    34PYTHON=python${PYVERSION}
    4 
    5 #1: install numpy
    6 #2 install scipy
    7 #3 erase
    8 install=2
    9 
    105
    116export CC="gcc -fPIC"
     
    1510export FFLAGS=-ff2c
    1611
     12#clean up
     13rm -rf numpy scipy
    1714
    18 if [[ $install == "1" ]];then
     15#download numpy first
     16export GIT_SSL_NO_VERIFY=true
     17git clone https://github.com/numpy/numpy.git
    1918
    20         #download numpy first
     19#install numpy
     20cd numpy
     21python setup.py build
     22python setup.py install
     23cd ..
     24${PYTHON} -c "import numpy; print 'Installed NumPy', numpy.__version__"
     25${PYTHON} -c "import numpy; numpy.test()"
    2126
    22         export GIT_SSL_NO_VERIFY=true
    23         git clone https://github.com/numpy/numpy.git
     27#download scipy
     28export GIT_SSL_NO_VERIFY=true
     29git clone https://github.com/scipy/scipy.git
    2430
    25         #install numpy
    26         cd numpy
    27         python setup.py build
    28         python setup.py install
    29         cd ..
    30         ${PYTHON} -c "import numpy; print 'Installed NumPy', numpy.__version__"
    31         ${PYTHON} -c "import numpy; numpy.test()"
     31#install scipy
     32cd scipy
     33export  BLAS_SRC=$ISSM_DIR/externalpackages/blas/install/lib
     34export  BLAS=$ISSM_DIR/externalpackages/blas/install/lib
     35export  LAPACK_SRC=$ISSM_DIR/externalpackages/lapack/install/lib
     36export  LAPACK=$ISSM_DIR/externalpackages/lapack/install/lib
    3237
    33        
    34 elif [[ $install == "2" ]];then
    35        
    36         #download scipy
    37         export GIT_SSL_NO_VERIFY=true
    38         git clone https://github.com/scipy/scipy.git
    39 
    40         #install scipy
    41         cd scipy
    42         export  BLAS_SRC=$ISSM_DIR/externalpackages/blas/install/lib
    43         export  BLAS=$ISSM_DIR/externalpackages/blas/install/lib
    44         export  LAPACK_SRC=$ISSM_DIR/externalpackages/lapack/install/lib
    45         export  LAPACK=$ISSM_DIR/externalpackages/lapack/install/lib
    46 
    47         python setup.py build
    48         python setup.py install
    49         cd ..
    50         ${PYTHON} -c "import scipy; print 'Installed SciPy', scipy.__version__"
    51         ${PYTHON} -c "import scipy; scipy.test()"
    52 
    53 elif [[ $install == "3" ]];then
    54         rm -rf numpy scipy
    55 else
    56         echo "Choice not covered"
    57 fi
     38python setup.py build
     39python setup.py install
     40cd ..
     41${PYTHON} -c "import scipy; print 'Installed SciPy', scipy.__version__"
     42##${PYTHON} -c "import scipy; scipy.test()"
Note: See TracChangeset for help on using the changeset viewer.