mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-19 08:59:33 +03:00
Disable Python 2 on future RHEL and Fedora > 29
The end of Python 2 is nearing, so declare when it will be removed from libvirt Python binding RPMs. NB, this doesn't imply we'll be removing py2 support from upstream libvirt-python on the same timeframe - we'll consider what todo wrt that when upstream Python 2 finally goes EOL. Reviewed-by: Jiri Denemark <jdenemar@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@ -13,6 +13,10 @@
|
||||
%endif
|
||||
|
||||
%define _with_python2 1
|
||||
%if 0%{?fedora} > 29 || 0%{?rhel} > 7
|
||||
%define _with_python2 0
|
||||
%endif
|
||||
|
||||
%define _with_python3 0
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%define _with_python3 1
|
||||
|
Reference in New Issue
Block a user