summaryrefslogtreecommitdiffstats
path: root/jjb/apex/apex-deploy.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-06-03 18:04:52 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-03 18:04:52 +0000
commit7e71071cd718f3bd360c7daf1608f47bf49c1f63 (patch)
tree1cec5654bd905da0087cb870eaa0aba4f4401748 /jjb/apex/apex-deploy.sh
parent95dab7bbd2e83b463abed3c456a24635b5687e39 (diff)
parentec737e9f419e9adf34e651f58da6e2e7139d236a (diff)
Merge "Apex: Add jinja2 package check and install"
Diffstat (limited to 'jjb/apex/apex-deploy.sh')
-rwxr-xr-xjjb/apex/apex-deploy.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/jjb/apex/apex-deploy.sh b/jjb/apex/apex-deploy.sh
index 0d34f1a7a..47ec57289 100755
--- a/jjb/apex/apex-deploy.sh
+++ b/jjb/apex/apex-deploy.sh
@@ -84,6 +84,17 @@ if [[ "$BUILD_DIRECTORY" == *verify* ]]; then
fi
done
+ # Make sure jinja2 is installed
+ for python_pkg in jinja2; do
+ if ! python3.4 -c "import $python_pkg"; then
+ echo "$python_pkg package not found for python3.4, attempting to install..."
+ if ! sudo easy_install-3.4 $python_pkg; then
+ echo -e "Failed to install $python_pkg package for python3.4"
+ exit 1
+ fi
+ fi
+ done
+
if [ -z ${PYTHONPATH:-} ]; then
export PYTHONPATH=${WORKSPACE}/lib/python
else