Attempt to ensure the runtime is built with the correct Python version.

This commit is contained in:
Dave Page 2018-02-20 10:44:01 +00:00
parent 8a56eb9cd0
commit 8148a61279
2 changed files with 14 additions and 2 deletions

View File

@ -3,8 +3,14 @@
echo "EXECUTING: Build runtime - QT4"
echo
if [ ${PYTHON_VERSION:0:1} == "3" ]; then
CONFIG=/usr/local/python-$PYTHON_VERSION/bin/python-config3
else
CONFIG=/usr/local/python-$PYTHON_VERSION/bin/python-config
fi
cd $WORKSPACE/runtime
make clean
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt4 || { echo 'ERROR: Failed to run the QT4 qmake step.' ; exit 1; }
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH PYTHON_CONFIG=$CONFIG /bin/qmake-qt4 || { echo 'ERROR: Failed to run the QT4 qmake step.' ; exit 1; }
make all || { echo 'ERROR: Failed to build the QT4 runtime.' ; exit 1; }

View File

@ -3,8 +3,14 @@
echo "EXECUTING: Build runtime - QT5"
echo
if [ ${PYTHON_VERSION:0:1} == "3" ]; then
CONFIG=/usr/local/python-$PYTHON_VERSION/bin/python-config3
else
CONFIG=/usr/local/python-$PYTHON_VERSION/bin/python-config
fi
cd $WORKSPACE/runtime
make clean
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH /bin/qmake-qt5 DEFINES+=PGADMIN4_USE_WEBKIT || { echo 'ERROR: Failed to run the QT5 qmake step.' ; exit 1; }
PATH=/usr/local/python-$PYTHON_VERSION/bin:$PATH PYTHON_CONFIG=$CONFIG /bin/qmake-qt5 DEFINES+=PGADMIN4_USE_WEBKIT || { echo 'ERROR: Failed to run the QT5 qmake step.' ; exit 1; }
make all || { echo 'ERROR: Failed to build the QT4 runtime.' ; exit 1; }