Salome HOME
passage to petsc 3.14.0
[tools/sat_salome.git] / products / compil_scripts / numpy-1.15.1.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "numpy" $VERSION
5 echo "##########################################################################"
6
7
8 mkdir -p $PRODUCT_INSTALL
9
10 cd $SOURCE_DIR
11
12 ## editer customize.py Pour LApack : using Atlas, Pour Blas : Using gsl
13 # OP 29/03/2018 We create a build configuration file to set
14 #               information about lapack preprequisite
15 echo "#" > site.cfg
16 echo "# Build configuration for numpy" >> site.cfg
17 echo "#" >> site.cfg
18 echo >> site.cfg
19 echo "# Section ALL to set global information for lapack dependency" >> site.cfg
20 echo "[ALL]" >> site.cfg
21 echo "libraries = lapack,blas,cblas,lapacke,tmglib" >> site.cfg
22 echo "library_dirs = \$\{LAPACKHOME\}/lib" >> site.cfg
23 #echo "runtime_library_dirs = ${LAPACKHOME}/lib" >> site.cfg
24 echo "include_dirs = \$\{LAPACKHOME\}/include" >> site.cfg
25 #echo "extra_link_args = -lcblas" >> site.cfg
26 echo >> site.cfg
27
28
29 NUMPY_INSTALL=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages
30 mkdir -p ${NUMPY_INSTALL}
31 PYTHONPATH=${NUMPY_INSTALL}:${PYTHONPATH}
32
33 echo
34 echo "*** setup.py install"
35 python setup.py install --prefix=${PRODUCT_INSTALL}
36 if [ $? -ne 0 ]
37 then
38     echo "ERROR on setup install"
39     rm -f site.cfg
40     exit 2
41 fi
42
43 rm -f site.cfg
44
45 echo
46 echo "########## END"
47