On Fri, Mar 23, 2018 at 15:01:54 +0000, Daniel P. Berrangé wrote:
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.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
libvirt-python.spec.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index 7953c82..9697ea8 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.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
Reviewed-by: Jiri Denemark <jdenemar(a)redhat.com>