CentOS8: Requests-toolbelt should use python3

change python to python3 explicitly to fix RPM build

Story: 2006729
Task: 37900

Change-Id: I46bf1d783d25222b7d67945f4e648799e55e808b
Signed-off-by: Long Li <lilong-neu@neusoft.com>
This commit is contained in:
Long Li 2019-12-26 11:16:01 +08:00
parent 67639e2966
commit 2a29af3dc7

View File

@ -10,26 +10,26 @@ Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
Requires: python3-devel
Requires: /bin/bash
%description
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
%setup
%build
%{__python} setup.py build
%py2_build_wheel
%{__python3} setup.py build
%{__python3} setup.py bdist_wheel
%install
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
%{__python3} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \