From ec737e9f419e9adf34e651f58da6e2e7139d236a Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Thu, 2 Jun 2016 16:50:54 -0400 Subject: Apex: Add jinja2 package check and install Change-Id: I9ea883139333730d9f3d0c77abef459d9f26e94b Signed-off-by: Feng Pan --- jjb/apex/apex-deploy.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'jjb/apex') 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 -- cgit 1.2.3-korg