From 48298a97a6413ca03df97d8639c912c660b06920 Mon Sep 17 00:00:00 2001 From: Don Penney Date: Mon, 22 Oct 2018 16:48:38 -0400 Subject: [PATCH] Add hooks for python wheel generation This update adds hooks to the spec files for the following packages to generate wheels for the python modules: - ceph-manager - libvirt-python - logmgmt - platform-util - python-3parclient - python-cephclient - python-lefthandclient - python-ryu - vm-topology Change-Id: Ia63291e686818d19d0df52ff26b5f0bb3812b8ce Story: 2003907 Task: 26787 Signed-off-by: Don Penney --- vm-topology/centos/vm-topology.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vm-topology/centos/vm-topology.spec b/vm-topology/centos/vm-topology.spec index 2368256..d844a4d 100644 --- a/vm-topology/centos/vm-topology.spec +++ b/vm-topology/centos/vm-topology.spec @@ -15,6 +15,8 @@ BuildArch: noarch BuildRequires: python BuildRequires: python-setuptools +BuildRequires: python2-pip +BuildRequires: python2-wheel BuildRequires: python-keyring BuildRequires: libvirt @@ -35,10 +37,12 @@ rm -f requirements.txt %build %{__python2} setup.py build +%py2_build_wheel %install %{__python2} setup.py install --skip-build --root %{buildroot} - +mkdir -p $RPM_BUILD_ROOT/wheels +install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/ %files %defattr(-,root,root,-) @@ -47,3 +51,11 @@ rm -f requirements.txt %{python2_sitelib}/vm_topology %{python2_sitelib}/*.egg-info +%package wheels +Summary: %{name} wheels + +%description wheels +Contains python wheels for %{name} + +%files wheels +/wheels/*