[oe] [meta-oe][krogoth][master][PATCH] python-simplejson: change to setuptools

George McCollister george.mccollister at gmail.com
Fri May 27 20:56:35 UTC 2016


Change from distutils to setuptools.

simplejson's setup.py is written to import setup, Extension, Command
from setuptools and fallback to distutils if the import fails. Prior to
this change files were being installed to a host polluted path
/usr/lib/python2.7/site-packages/simplejson-3.8.2-py2.7-linux-x86_64.egg
(even on ARM targets). python was unable to import simplejson. Switching
to setuptools corrects the problem.

Signed-off-by: George McCollister <george.mccollister at gmail.com>
---
 meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb b/meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb
index a2a6c40..0c9112e 100644
--- a/meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb
+++ b/meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb
@@ -14,7 +14,7 @@ SRC_URI[sha256sum] = "d58439c548433adcda98e695be53e526ba940a4b9c44fb9a05d92cd495
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-inherit distutils
+inherit setuptools
 
 RDEPENDS_${PN} = "\
     python-core \
-- 
2.8.0




More information about the Openembedded-devel mailing list