Salome HOME
initial commit : transfert of salome configuration files from internal git base
[tools/sat_salome.git] / products / compil_scripts / subprocess32.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "subprocess32" $VERSION
5 echo "##########################################################################"
6
7
8
9 cd $SOURCE_DIR
10
11 echo
12 echo "*** build"
13 python setup.py build
14 if [ $? -ne 0 ]
15 then
16     echo "ERROR on build"
17     exit 2
18 fi
19
20 SUBPROCESS_INSTALL=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages
21 mkdir -p ${SUBPROCESS_INSTALL}
22 export PYTHONPATH=${SUBPROCESS_INSTALL}:${PYTHONPATH}
23 echo
24 echo "*** install"
25 python setup.py install --prefix=${PRODUCT_INSTALL}
26 if [ $? -ne 0 ]
27 then
28     echo "ERROR on install"
29     exit 3
30 fi
31
32 echo
33 echo "########## END"