Salome HOME
spns #32239 - ParaView Windows
[tools/sat_salome.git] / products / compil_scripts / PyQt-5.15.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} \
28     --disable=QtNetwork --disable=QtWebSockets 2>&1
29 #    --disable=QtNetwork --disable=QtWebSockets --disable=QtWebKit  --disable=QtWebKitWidgets --disable=QAxContainer --disable=QtMacExtras --disable=QtWinExtras --disable=QtX11Extras --disable=Enginio 2>&1
30
31 if [ $? -ne 0 ]
32 then
33     echo "ERROR on configure"
34 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
35 #                               On fait tout dans les sources
36 #    exit 1
37 #    cd $CURRENT_DIR
38     exit 2
39 fi
40
41 echo
42 echo "*** make" $MAKE_OPTIONS
43 make $MAKE_OPTIONS
44 if [ $? -ne 0 ]
45 then
46     echo "ERROR on make"
47 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
48 #                               On fait tout dans les sources
49 #    exit 2
50 #    cd $CURRENT_DIR
51     exit 3
52 fi
53
54 echo
55 echo "*** make install"
56 make install
57 if [ $? -ne 0 ]
58 then
59     echo "ERROR on make install"
60 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
61 #                               On fait tout dans les sources
62 #    exit 3
63 #    cd $CURRENT_DIR
64     exit 4
65 fi
66
67 # OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9
68 #                               Ajout du make clean
69 echo
70 echo "*** make clean"
71 make clean
72 if [ $? -ne 0 ]
73 then
74     echo "ERROR on make clean"
75 #    cd $CURRENT_DIR
76     exit 5
77 fi
78
79 # Issue with GUI - TO BE FIXED
80 if [ -n "$SIP_ROOT_DIR" ]
81 then
82     mkdir -p $PRODUCT_INSTALL/sip
83     cp -r $SIP_ROOT_DIR/* $PRODUCT_INSTALL/sip
84 else
85     echo "FATAL: Please set SIP_ROOT_DIR environment variable"
86     exit 6
87 fi
88
89 echo
90 echo "########## END"
91
92 exit 0
93