summaryrefslogtreecommitdiffstats
path: root/jjb/apex/apex-build.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-09-11 22:37:48 -0400
committerTim Rozet <trozet@redhat.com>2017-09-11 22:37:48 -0400
commit43c22e0bf29aef3b9bdda1a3b7614ce917d405aa (patch)
tree4cb88521384aaa35c5b7d397ad17d5c4801d28a5 /jjb/apex/apex-build.sh
parentc7f40696b6223a945d38634e423ebcb2888d98fd (diff)
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>
Diffstat (limited to 'jjb/apex/apex-build.sh')
-rwxr-xr-xjjb/apex/apex-build.sh1
1 files changed, 1 insertions, 0 deletions
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