Changeset 13179
- Timestamp:
- 08/29/12 08:58:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/scipy/install-linux64.sh
r12825 r13179 1 1 #!/bin/bash 2 set -eu 2 3 PYVERSION=2.7 3 4 PYTHON=python${PYVERSION} 4 5 #1: install numpy6 #2 install scipy7 #3 erase8 install=29 10 5 11 6 export CC="gcc -fPIC" … … 15 10 export FFLAGS=-ff2c 16 11 12 #clean up 13 rm -rf numpy scipy 17 14 18 if [[ $install == "1" ]];then 15 #download numpy first 16 export GIT_SSL_NO_VERIFY=true 17 git clone https://github.com/numpy/numpy.git 19 18 20 #download numpy first 19 #install numpy 20 cd numpy 21 python setup.py build 22 python setup.py install 23 cd .. 24 ${PYTHON} -c "import numpy; print 'Installed NumPy', numpy.__version__" 25 ${PYTHON} -c "import numpy; numpy.test()" 21 26 22 export GIT_SSL_NO_VERIFY=true 23 git clone https://github.com/numpy/numpy.git 27 #download scipy 28 export GIT_SSL_NO_VERIFY=true 29 git clone https://github.com/scipy/scipy.git 24 30 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 32 cd scipy 33 export BLAS_SRC=$ISSM_DIR/externalpackages/blas/install/lib 34 export BLAS=$ISSM_DIR/externalpackages/blas/install/lib 35 export LAPACK_SRC=$ISSM_DIR/externalpackages/lapack/install/lib 36 export LAPACK=$ISSM_DIR/externalpackages/lapack/install/lib 32 37 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 38 python setup.py build 39 python setup.py install 40 cd .. 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.