Salome HOME
ttk- patch implementation -otherwise blind to graphviz/embree
[tools/sat_salome.git] / products / compil_scripts / sip-5.5.0.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo SIP + PyQt5_sip $VERSION
5 echo "##########################################################################"
6
7
8 echo  "*** build in SOURCE directory"
9 cd $SOURCE_DIR/sip-5.5.0
10
11 # we don't install in python directory -> modify environment as described in INSTALL file
12 mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
13 export PATH=$(pwd)/bin:$PATH
14 export PYTHONPATH=$(pwd):$PYTHONPATH
15 export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
16
17 echo
18 echo "*** build with $PYTHONBIN"
19 $PYTHONBIN setup.py build
20 if [ $? -ne 0 ]
21 then
22     echo "ERROR on build"
23     exit 2
24 fi
25
26 echo
27 echo "*** install with $PYTHONBIN"
28 $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
29 if [ $? -ne 0 ]
30 then
31     echo "ERROR on install"
32     exit 3
33 fi
34
35 cd $SOURCE_DIR/PyQt5_sip-12.8.1
36
37 echo
38 echo "*** build with $PYTHONBIN"
39 $PYTHONBIN setup.py build
40 if [ $? -ne 0 ]
41 then
42     echo "ERROR on build"
43     exit 2
44 fi
45
46 echo
47 echo "*** install with $PYTHONBIN"
48 $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
49 if [ $? -ne 0 ]
50 then
51     echo "ERROR on install"
52     exit 3
53 fi
54
55 mkdir $PRODUCT_INSTALL/include
56 cp *.h $PRODUCT_INSTALL/include
57
58 cd $PRODUCT_INSTALL/bin
59 ln -sf sip5 sip
60
61 echo
62 echo "########## END"