Merge "CentOS8: Requests-toolbelt should use python3" into f/centos8

This commit is contained in:
Zuul 2020-01-17 23:08:26 +00:00 committed by Gerrit Code Review
commit 24ccf20aa7

View File

@ -10,26 +10,26 @@ Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil} %define debug_package %{nil}
BuildRequires: python-setuptools BuildRequires: python3-setuptools
BuildRequires: python2-pip BuildRequires: python3-pip
BuildRequires: python2-wheel BuildRequires: python3-wheel
Requires: python-devel Requires: python3-devel
Requires: /bin/bash Requires: /bin/bash
%description %description
A utility belt for advanced users of python-requests A utility belt for advanced users of python-requests
%define pythonroot /usr/lib64/python2.7/site-packages %define pythonroot /usr/lib64/python3.6/site-packages/
%prep %prep
%setup %setup
%build %build
%{__python} setup.py build %{__python3} setup.py build
%py2_build_wheel %{__python3} setup.py bdist_wheel
%install %install
%{__python} setup.py install --root=$RPM_BUILD_ROOT \ %{__python3} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \ --install-lib=%{pythonroot} \
--prefix=/usr \ --prefix=/usr \
--install-data=/usr/share \ --install-data=/usr/share \