source: issm/oecreview/Archive/12221-12240/ISSM-12239-12240.diff@ 12325

Last change on this file since 12325 was 12325, checked in by Eric.Larour, 13 years ago

11990 to 12321 oec compliance

File size: 1.5 KB
  • proj/ice/larour/issm-uci-clean/trunk-jpl/externalpackages/scipy/install-linux64.sh

     
     1#!/bin/bash
     2
     3#1: install numpy
     4#2 install scipy
     5#3 erase
     6install=2
     7
     8
     9export CC="gcc -fPIC"
     10export CXX="g++ -fPIC"
     11export F77="gfortran -fPIC"
     12export FC="gfortran -fPIC"
     13export FFLAGS=-ff2c
     14
     15
     16if [[ $install == "1" ]];then
     17
     18        #download numpy first
     19
     20        export GIT_SSL_NO_VERIFY=true
     21        git clone https://github.com/numpy/numpy.git
     22
     23        #install numpy
     24        cd numpy
     25        python setup.py build
     26        python setup.py install
     27
     28       
     29elif [[ $install == "2" ]];then
     30       
     31        #download scipy
     32        export GIT_SSL_NO_VERIFY=true
     33        git clone https://github.com/scipy/scipy.git
     34
     35        #install scipy
     36        cd scipy
     37        export  BLAS_SRC=$ISSM_DIR/externalpackages/blas/install/lib
     38        export  BLAS=$ISSM_DIR/externalpackages/blas/install/lib
     39        export  LAPACK_SRC=$ISSM_DIR/externalpackages/lapack/install/lib
     40        export  LAPACK=$ISSM_DIR/externalpackages/lapack/install/lib
     41
     42        python setup.py build
     43        python setup.py install
     44
     45elif [[ $install == "3" ]];then
     46        rm -rf numpy scipy
     47else
     48        echo "Choice not covered"
     49fi
Note: See TracBrowser for help on using the repository browser.