Add support for including python wheel plugins in apps

If an application RPM contains a plugins directory, stage the contents
for packaging with tarball.

Change-Id: Idc47f39c7180407b85ff50d4e7cd7ab6444905ec
Story: 2006537
Task: 36979
Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
Robert Church 2019-09-22 17:26:12 -04:00
parent 18e81255a3
commit 3687c0b998
1 changed files with 9 additions and 0 deletions

View File

@ -451,6 +451,15 @@ if [ $? -ne 0 ]; then
exit 1
fi
# Stage all the plugin wheels, if present
if [ -d "plugins" ]; then
cp -R plugins staging/plugins
if [ $? -ne 0 ]; then
echo "Failed to copy the wheels from ${BUILD_OUTPUT_PATH}/wheels to ${BUILD_OUTPUT_PATH}/staging/plugins" >&2
exit 1
fi
fi
# Stage metadata file, if present
if [ -e usr/lib/application/metadata.yaml ]; then
cp usr/lib/application/metadata.yaml staging/.