1ac299fd5f
python-k8sapp-openstack is required by stx-openstack-helm. Story: 2008952 Task: 42576 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: Ife8019cac21256d38ff5b845fd9d7877376d9e0c
55 lines
1.0 KiB
BlitzBasic
55 lines
1.0 KiB
BlitzBasic
SUMMARY = "StarlingX sysinv extensions: Openstack K8S app"
|
|
DESCRIPTION = "StarlingX sysinv extensions: Openstack K8S app"
|
|
SECTION = "devel/python"
|
|
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=41687b590435621fc0676ac02c51154f"
|
|
|
|
PV = "1.0"
|
|
PR = "83"
|
|
PRAUTO = "tis"
|
|
|
|
DEPENDS += "\
|
|
${PYTHON_PN}-pbr-native \
|
|
${PYTHON_PN}-pip-native \
|
|
${PYTHON_PN}-wheel-native \
|
|
"
|
|
|
|
inherit setuptools
|
|
inherit stx-metadata
|
|
|
|
STX_REPO = "openstack-armada-app"
|
|
STX_SUBPATH = "${BPN}/k8sapp_openstack"
|
|
|
|
S = "${WORKDIR}/k8sapp_openstack"
|
|
|
|
PACKAGES += "${PN}-wheels"
|
|
|
|
export PBR_VERSION = "${PV}"
|
|
export SKIP_PIP_INSTALL = "1"
|
|
|
|
do_unpack_append() {
|
|
bb.build.exec_func('do_restore_files', d)
|
|
}
|
|
|
|
do_restore_files() {
|
|
cp -rf ${STX_METADATA_PATH} ${WORKDIR}
|
|
}
|
|
|
|
do_configure_preppend() {
|
|
rm -rf k8sapp_openstack.egg-info
|
|
}
|
|
|
|
do_compile_append() {
|
|
${PYTHON_PN} setup.py bdist_wheel
|
|
}
|
|
|
|
do_install_append() {
|
|
install -d ${D}/plugins
|
|
install -m 0644 ${S}/dist/*.whl ${D}/plugins
|
|
}
|
|
|
|
FILES_${PN}-wheels += "/plugins"
|
|
|
|
SYSROOT_DIRS += "/plugins"
|