[libvirt] [jenkins-ci PATCH v2 01/12] mappings: Add python2-setuptools

Fabiano Fidêncio posted 12 patches 6 years, 4 months ago
There is a newer version of this series
[libvirt] [jenkins-ci PATCH v2 01/12] mappings: Add python2-setuptools
Posted by Fabiano Fidêncio 6 years, 4 months ago
python-setuptools, which will only be used on CentOS7, is needed in order
to properly use the pip module for installing meson.

Without this package, we would see failures as `ImportError: No module
named pkg_resources` when trying to use the pip module, even when using
its python3 version.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
---
 guests/vars/mappings.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml
index 5c32c94..8640d15 100644
--- a/guests/vars/mappings.yml
+++ b/guests/vars/mappings.yml
@@ -787,6 +787,9 @@ mappings:
     rpm: perl-generators
     CentOS7:
 
+  python2-setuptools:
+    CentOS7: python2-setuptools
+
   pkg-config:
     default: pkgconf
     rpm: pkgconfig
-- 
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [jenkins-ci PATCH v2 01/12] mappings: Add python2-setuptools
Posted by Andrea Bolognani 6 years, 4 months ago
On Tue, 2019-10-08 at 09:58 +0200, Fabiano Fidêncio wrote:
> python-setuptools, which will only be used on CentOS7, is needed in order
> to properly use the pip module for installing meson.
> 
> Without this package, we would see failures as `ImportError: No module
> named pkg_resources` when trying to use the pip module, even when using
> its python3 version.

It's a bummer that we still can't leave Python 2 behind :(

> +++ b/guests/vars/mappings.yml
> @@ -787,6 +787,9 @@ mappings:
>      rpm: perl-generators
>      CentOS7:
>  
> +  python2-setuptools:
> +    CentOS7: python2-setuptools

This belongs further down, after python2-nose.

With that fixed,

  Reviewed-by: Andrea Bolognani <abologna@redhat.com>

-- 
Andrea Bolognani / Red Hat / Virtualization

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