Add hooks for python wheel generation
This update adds hooks to the spec files for the following package to generate wheels for the python module: - requests-toolbelt Depends-On: I787bf4ed7c75b6e1c62584e1c049b9fafc73fa54 Change-Id: Ibdae0a338a1af493ac522757b61bbd6df1da941e Story: 2003907 Task: 27529 Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
parent
4eb2078240
commit
e19974146d
@ -11,6 +11,8 @@ Source0: %{name}-%{version}.tar.gz
|
||||
%define debug_package %{nil}
|
||||
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
Requires: python-devel
|
||||
Requires: /bin/bash
|
||||
|
||||
@ -24,6 +26,7 @@ A utility belt for advanced users of python-requests
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
|
||||
@ -31,6 +34,8 @@ A utility belt for advanced users of python-requests
|
||||
--prefix=/usr \
|
||||
--install-data=/usr/share \
|
||||
--single-version-externally-managed
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -41,3 +46,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{pythonroot}/requests_toolbelt
|
||||
%{pythonroot}/requests_toolbelt-*.egg-info
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
Loading…
Reference in New Issue
Block a user