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}