diff options
author | Tim Rozet <trozet@redhat.com> | 2016-06-03 18:04:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-03 18:04:52 +0000 |
commit | 7e71071cd718f3bd360c7daf1608f47bf49c1f63 (patch) | |
tree | 1cec5654bd905da0087cb870eaa0aba4f4401748 /jjb/apex/apex-deploy.sh | |
parent | 95dab7bbd2e83b463abed3c456a24635b5687e39 (diff) | |
parent | ec737e9f419e9adf34e651f58da6e2e7139d236a (diff) |
Merge "Apex: Add jinja2 package check and install"
Diffstat (limited to 'jjb/apex/apex-deploy.sh')
-rwxr-xr-x | jjb/apex/apex-deploy.sh | 11 |
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 |