upstream/openstack/python-cinderclient/debian/deb_patches/0001-Add-package-wheel.patch
Charles Short 18ac7da113 Add debian packaging infra for python-cinderclient
Add Debian packging infra for python-cinderclient.

Story: 2009101
Task: 43798

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I8e18c423b45ddda02b0b8dba714b5b34da54f3f7
2021-11-08 10:48:04 -05:00

30 lines
941 B
Diff

From 5c420535f8b04efda7a9fac27eeaafde961db6aa Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 27 Oct 2021 17:28:06 +0000
Subject: [PATCH] Add package wheel
Add python3-cinderclient-wheel.
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index 8acee49..0d8778c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ override_dh_auto_install:
for i in $(PYTHON3S) ; do \
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
done
+ for i in $(PYTHON3S) ; do \
+ python3 setup.py bdist_wheel --universal -d $(CURDIR)/debian/python3-cinderclient-wheel/usr/share/python3-wheel ; \
+ done
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2
endif
--
2.30.2