[libvirt] [PATCH python] Disable Python 2 on future RHEL and Fedora > 29

Daniel P. Berrangé posted 1 patch 6 years ago
Failed in applying to current master (apply log)
libvirt-python.spec.in | 4 ++++
1 file changed, 4 insertions(+)
[libvirt] [PATCH python] Disable Python 2 on future RHEL and Fedora > 29
Posted by Daniel P. Berrangé 6 years ago
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@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
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH python] Disable Python 2 on future RHEL and Fedora > 29
Posted by Jiri Denemark 6 years ago
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@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@redhat.com>

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list