From 7a296016bcae980ce0fdd7c8d88ec42efa264a45 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Wed, 28 Feb 2018 16:17:27 +0000 Subject: [PATCH] Fix python3 conditionals on EL 7 and older --- python-setuptools.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-setuptools.spec b/python-setuptools.spec index 5c83104..d1f6d89 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -5,9 +5,6 @@ %bcond_with bootstrap %bcond_without tests -%bcond_without python2 -%bcond_without python3 - %if 0%{?rhel} && 0%{?rhel} <= 7 %global _without_python3 1 # define some macros for RHEL 6 @@ -15,6 +12,11 @@ %global python2_sitelib %python_sitelib %endif +# Note(hguemar): overrides must be placed *before* those +# Otherwise it doesn't work +%bcond_without python2 +%bcond_without python3 + %if %{without bootstrap} %global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl %if %{with python2}