Tracey Bogue 3e716e9c61 Debian packaging: Fix manual pycache handling
Fix python-k8sapp-nginx-ingress-controller install file and
clean up manual pycache removal in rules file.

Story: 2009101
Task: 43746

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: I936d3a8fe2f39dac5d87c84a5cc960ff3aed8d10
2021-12-02 13:32:32 -06:00

26 lines
604 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export APP_NAME=nginx-ingress-controller
export PBR_VERSION=1.0.0
export PYBUILD_NAME=k8sapp_nginx_ingress_controller
export ROOT=debian/tmp
%:
dh $@ --with=python3 --buildsystem=pybuild
override_dh_auto_install:
python3 setup.py install --install-layout=deb --root $(ROOT)
python3 setup.py bdist_wheel \
--universal \
-d $(ROOT)/plugins/$(APP_NAME)
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
# (tbogue) FIXME
PYTHONDIR=$(CURDIR) stestr run || true
endif