From 81efadf2d35230c6bb17a680cec4d78d28374dba Mon Sep 17 00:00:00 2001 From: Dongqi Chen Date: Thu, 28 May 2020 10:18:36 +0800 Subject: [PATCH] Centos8: Remove python2 related macros Because there is a macro related to python2, it will cause a build error, so remove it Story: 2006729 Task: 39875 Change-Id: I0284141f839f30206bd2197dab65b4110576a960 Signed-off-by: Dongqi Chen --- python/python-html5lib/centos/python-html5lib.spec | 3 --- python/python-mechanize/centos/python-mechanize.spec | 3 --- 2 files changed, 6 deletions(-) diff --git a/python/python-html5lib/centos/python-html5lib.spec b/python/python-html5lib/centos/python-html5lib.spec index 3f7aeffda..a98a20d69 100644 --- a/python/python-html5lib/centos/python-html5lib.spec +++ b/python/python-html5lib/centos/python-html5lib.spec @@ -1,6 +1,3 @@ -# define some macros for RHEL 6 -%global __python2 %__python -%global python2_sitelib %python_sitelib %define with_python3 1 Name: html5lib-python diff --git a/python/python-mechanize/centos/python-mechanize.spec b/python/python-mechanize/centos/python-mechanize.spec index 6c620c8cd..e2aae1220 100644 --- a/python/python-mechanize/centos/python-mechanize.spec +++ b/python/python-mechanize/centos/python-mechanize.spec @@ -4,9 +4,6 @@ %global with_check 0 %global build_wheel 0 %define with_python3 1 -# define some macros for RHEL 6 -%global __python2 %__python -%global python2_sitelib %python_sitelib Name: mechanize Version: 0.4.5