Salome HOME
bos #38104: prepare final configuration files for SALOME 9.12.0
[tools/sat_salome.git] / products / compil_scripts / YACSGEN.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "YACSGEN" $VERSION
5 echo "##########################################################################"
6
7
8
9 echo  "*** build in SOURCE directory"
10 cd $SOURCE_DIR
11
12 # we don't install in python directory -> modify environment as described in INSTALL file
13 mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
14 export PATH=$(pwd)/bin:$PATH
15 export PYTHONPATH=$(pwd):$PYTHONPATH
16 export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
17
18 echo
19 echo "*** build and install with $PYTHONBIN"
20 $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
21 if [ $? -ne 0 ]
22 then
23     echo "ERROR on build/install"
24     exit 3
25 fi
26
27 echo
28 echo "########## END"