Salome HOME
spns #32926: backport KERNEL & CONFIGURATION fixes on more recent platforms to ensure...
[tools/sat_salome.git] / products / compil_scripts / PyQt-5.12.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "PyQt" $VERSION
5 echo "##########################################################################"
6
7
8
9 python_name=python$PYTHON_VERSION
10
11 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
12 #                               On fait tout dans les sources
13 #CURRENT_DIR=`pwd`
14 cd $SOURCE_DIR
15 if [ $? -ne 0 ]
16 then
17     echo "ERROR on $SOURCE_DIR access"
18     exit 1
19 fi
20
21
22 echo
23 echo "*** configure.py --confirm-license --no-designer-plugin --verbose --bindir=${PRODUCT_INSTALL}/bin --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages --sipdir=${SIP_ROOT_DIR} --disable=QtNetwork --disable=QtWebSockets"
24 $PYTHONBIN ./configure.py --confirm-license --no-designer-plugin --verbose \
25     --bindir=${PRODUCT_INSTALL}/bin \
26     --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages \
27     --sipdir=${SIP_ROOT_DIR}/sip \
28     --disable=QtNetwork --disable=QtWebSockets 2>&1
29
30 if [ $? -ne 0 ]
31 then
32     echo "ERROR on configure"
33 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
34 #                               On fait tout dans les sources
35 #    exit 1
36 #    cd $CURRENT_DIR
37     exit 2
38 fi
39
40 echo
41 echo "*** make" $MAKE_OPTIONS
42 make $MAKE_OPTIONS
43 if [ $? -ne 0 ]
44 then
45     echo "ERROR on make"
46 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
47 #                               On fait tout dans les sources
48 #    exit 2
49 #    cd $CURRENT_DIR
50     exit 3
51 fi
52
53 echo
54 echo "*** make install"
55 make install
56 if [ $? -ne 0 ]
57 then
58     echo "ERROR on make install"
59 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
60 #                               On fait tout dans les sources
61 #    exit 3
62 #    cd $CURRENT_DIR
63     exit 4
64 fi
65
66 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
67 #                               Ajout du make clean
68 echo
69 echo "*** make clean"
70 make clean
71 if [ $? -ne 0 ]
72 then
73     echo "ERROR on make clean"
74 #    cd $CURRENT_DIR
75     exit 5
76 fi
77
78
79 echo
80 echo "########## END"
81
82 exit 0
83