From 43c22e0bf29aef3b9bdda1a3b7614ce917d405aa Mon Sep 17 00:00:00 2001
From: Tim Rozet <trozet@redhat.com>
Date: Mon, 11 Sep 2017 22:37:48 -0400
Subject: Apex: Adds workspace to pythonpath for build

Since we do not install the package for build process we need to ensure
the PYTHONPATH is set to WORKSPACE so that build.py can find the libs it
needs in Apex.

Change-Id: I4e7f28ce5220206c7f4a8244199b00f762d72648
Signed-off-by: Tim Rozet <trozet@redhat.com>
---
 jjb/apex/apex-build.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/jjb/apex/apex-build.sh b/jjb/apex/apex-build.sh
index ad94ba3d7..2199567b7 100755
--- a/jjb/apex/apex-build.sh
+++ b/jjb/apex/apex-build.sh
@@ -31,6 +31,7 @@ BUILD_DIRECTORY=${WORKSPACE}/build
 pushd ${BUILD_DIRECTORY}
 make clean
 popd
+export PYTHONPATH=${WORKSPACE}:${PYTHONPATH}
 python3 apex/build.py $BUILD_ARGS
 RPM_VERSION=$(grep Version: $WORKSPACE/build/rpm_specs/opnfv-apex.spec | awk '{ print $2 }')-$(echo $OPNFV_ARTIFACT_VERSION | tr -d '_-')
 # list the contents of BUILD_OUTPUT directory
-- 
cgit