From 2a29af3dc7f0d9fe65e15c8a2e72be712004533e Mon Sep 17 00:00:00 2001 From: Long Li Date: Thu, 26 Dec 2019 11:16:01 +0800 Subject: [PATCH] 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 --- requests-toolbelt/centos/requests-toolbelt.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/requests-toolbelt/centos/requests-toolbelt.spec b/requests-toolbelt/centos/requests-toolbelt.spec index d6cbb7bab..122ae20cf 100644 --- a/requests-toolbelt/centos/requests-toolbelt.spec +++ b/requests-toolbelt/centos/requests-toolbelt.spec @@ -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 \