[libvirt] [PATCH python 6/7] Turn on python3 sub-RPMs for RHEL > 7

Daniel P. Berrange posted 7 patches 7 years, 4 months ago
[libvirt] [PATCH python 6/7] Turn on python3 sub-RPMs for RHEL > 7
Posted by Daniel P. Berrange 7 years, 4 months ago
It is expected that future RHEL-8 will have python3 by default, so enable that.
It is unclear whether python2 will still be available, so leave that enabled
for now.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
---
 libvirt-python.spec.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index cc5a5a5..0087c78 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -14,7 +14,7 @@
 
 %define _with_python2 1
 %define _with_python3 0
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} > 7
 %define _with_python3 1
 %endif
 
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH python 6/7] Turn on python3 sub-RPMs for RHEL > 7
Posted by Pavel Hrdina 7 years, 4 months ago
On Thu, Jan 11, 2018 at 04:43:38PM +0000, Daniel P. Berrange wrote:
> It is expected that future RHEL-8 will have python3 by default, so enable that.
> It is unclear whether python2 will still be available, so leave that enabled
> for now.
> 
> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> ---
>  libvirt-python.spec.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list