summaryrefslogtreecommitdiffstats
path: root/testsuite/before_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/before_install.sh')
-rwxr-xr-xtestsuite/before_install.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/before_install.sh b/testsuite/before_install.sh
index 884971e45..5f1a59aaf 100755
--- a/testsuite/before_install.sh
+++ b/testsuite/before_install.sh
@@ -2,9 +2,12 @@
# before_install script for Travis-CI
+PYVER=$(python -c 'import sys;print(".".join(str(v) for v in sys.version_info[0:2]))')
+
sudo apt-get update -qq
-sudo apt-get install -qq swig pylint libxml2-utils
+sudo apt-get install -qq swig libxml2-utils
if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
- sudo apt-get install -qq python-selinux python-pylibacl python-pyinotify \
- python-yaml yum
+ if [[ ${PYVER:0:1} == "2" ]]; then
+ sudo apt-get install -qq python-selinux python-pylibacl yum
+ fi
fi