[meta-virtualization] [meta-cloud-services][PATCH] python: Inherit setuptools instead of distutils for several packages

Adrian Dudau adrian.dudau at enea.com
Tue May 23 05:13:55 PDT 2017


python-appdirs
python-keystoneauth
python-lesscpy
python-os-client-config

The setup scripts of these modules use setuptools instead of distutils,
resulting in errors like this:

|   File "setup.py", line 5, in <module>
|     from setuptools import setup
| ImportError: No module named setuptools

Signed-off-by: Adrian Dudau <adrian.dudau at enea.com>
---
 meta-openstack/recipes-devtools/python/python-appdirs_git.bb          | 2 +-
 meta-openstack/recipes-devtools/python/python-keystoneauth1_2.18.0.bb | 2 +-
 meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb       | 2 +-
 meta-openstack/recipes-devtools/python/python-os-client-config_git.bb | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta-openstack/recipes-devtools/python/python-appdirs_git.bb b/meta-openstack/recipes-devtools/python/python-appdirs_git.bb
index 8e40f26..2482871 100644
--- a/meta-openstack/recipes-devtools/python/python-appdirs_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-appdirs_git.bb
@@ -12,7 +12,7 @@ SRC_URI = "git://github.com/ActiveState/${SRCNAME}.git"
 
 S = "${WORKDIR}/git"
 
-inherit distutils
+inherit setuptools
 
 DEPENDS += " \
         python-pip \
diff --git a/meta-openstack/recipes-devtools/python/python-keystoneauth1_2.18.0.bb b/meta-openstack/recipes-devtools/python/python-keystoneauth1_2.18.0.bb
index 1fdf9e1..83582c5 100644
--- a/meta-openstack/recipes-devtools/python/python-keystoneauth1_2.18.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystoneauth1_2.18.0.bb
@@ -12,7 +12,7 @@ SRC_URI[sha256sum] = "075a9ca7a8877c5885fa2487699015e45260c4e6be119683effe0ad2ab
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-inherit distutils
+inherit setuptools
 
 DEPENDS += " \
         python-pbr \
diff --git a/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb b/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb
index 61ae935..71e0dc0 100644
--- a/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb
+++ b/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb
@@ -17,7 +17,7 @@ SRC_URI[sha256sum] = "ccad1ad2a89ced1875c5ca4e16e5478b791d31fb187fe29f1541859318
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-inherit distutils
+inherit setuptools
 
 DISTUTILS_INSTALL_ARGS = "--root=${D} \
     --prefix=${prefix} \
diff --git a/meta-openstack/recipes-devtools/python/python-os-client-config_git.bb b/meta-openstack/recipes-devtools/python/python-os-client-config_git.bb
index 7b55dbb..5393bb7 100644
--- a/meta-openstack/recipes-devtools/python/python-os-client-config_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-os-client-config_git.bb
@@ -12,7 +12,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/newton"
 
 S = "${WORKDIR}/git"
 
-inherit distutils
+inherit setuptools
 
 DEPENDS += " \
         python-pbr \
-- 
2.7.4



More information about the meta-virtualization mailing list