summaryrefslogtreecommitdiff
path: root/libvirt-python.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2018-03-23 13:33:14 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2018-03-23 15:18:51 +0000
commit74eab13a2b3d965eff0d64d2307766e0a4afa76c (patch)
treeaab6006f8567076235cfe3c5856a849b9653fe61 /libvirt-python.spec.in
parentf9695b9b011be0b484362c17a9ec1f52b1bde24b (diff)
downloadlibvirt-python-74eab13a2b3d965eff0d64d2307766e0a4afa76c.tar.gz
Disable Python 2 on future RHEL and Fedora > 29v4.2.0
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>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r--libvirt-python.spec.in4
1 files changed, 4 insertions, 0 deletions
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