Fix python3 conditionals on EL 7 and older
This commit is contained in:
parent
825148c4a5
commit
7a296016bc
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user