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
RevLine 
[12325]1Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/externalpackages/scipy/install-linux64.sh
2===================================================================
3--- /proj/ice/larour/issm-uci-clean/trunk-jpl/externalpackages/scipy/install-linux64.sh (revision 0)
4+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/externalpackages/scipy/install-linux64.sh (revision 12240)
5@@ -0,0 +1,49 @@
6+#!/bin/bash
7+
8+#1: install numpy
9+#2 install scipy
10+#3 erase
11+install=2
12+
13+
14+export CC="gcc -fPIC"
15+export CXX="g++ -fPIC"
16+export F77="gfortran -fPIC"
17+export FC="gfortran -fPIC"
18+export FFLAGS=-ff2c
19+
20+
21+if [[ $install == "1" ]];then
22+
23+ #download numpy first
24+
25+ export GIT_SSL_NO_VERIFY=true
26+ git clone https://github.com/numpy/numpy.git
27+
28+ #install numpy
29+ cd numpy
30+ python setup.py build
31+ python setup.py install
32+
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+
50+elif [[ $install == "3" ]];then
51+ rm -rf numpy scipy
52+else
53+ echo "Choice not covered"
54+fi
55
56Property changes on: /proj/ice/larour/issm-uci-clean/trunk-jpl/externalpackages/scipy/install-linux64.sh
57___________________________________________________________________
58Added: svn:executable
59 + *
60
Note: See TracBrowser for help on using the repository browser.