Apex: Adds workspace to pythonpath for build 53/41653/1
authorTim Rozet <trozet@redhat.com>
Tue, 12 Sep 2017 02:37:48 +0000 (22:37 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 12 Sep 2017 02:37:48 +0000 (22:37 -0400)
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

index ad94ba3..2199567 100755 (executable)
@@ -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