diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-03-23 13:33:14 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2018-03-23 15:18:51 +0000 |
commit | 74eab13a2b3d965eff0d64d2307766e0a4afa76c (patch) | |
tree | aab6006f8567076235cfe3c5856a849b9653fe61 /libvirt-python.spec.in | |
parent | f9695b9b011be0b484362c17a9ec1f52b1bde24b (diff) | |
download | libvirt-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.in | 4 |
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 |