From eef4c3dd161d8340752ce7b08149b3ef32aa506d Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 26 Aug 2021 20:57:47 +0800 Subject: [PATCH] Add Qt5 if python 3 specified - workaround for tests --- travis2bash.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/travis2bash.sh b/travis2bash.sh index 258fe15..7e75110 100755 --- a/travis2bash.sh +++ b/travis2bash.sh @@ -85,6 +85,13 @@ function aptinstall() { fi } +function pyqt5() { + # install pyqt5 on python > 3 + if [[ ! "$TRAVIS_PYTHON" == "2.7" ]]; then + sudo apt -y install qtbase5-dev qt5-default + fi +} + function virtualenv_init() { # init virtualenv directory if [ -n "$3" ]; then @@ -160,6 +167,7 @@ create_variables "$config_file" travis_ rundir=$(pwd) aptinstall +pyqt5 # shellcheck disable=SC2154 if [[ "$(declare -p travis_python)" =~ "declare -a" ]]; then