Skip to contentSkip to conversation

python-simplejson: change to setuptools

PATCH New George McCollister 1 participant 1 message May 27, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-simplejson: change to setuptools

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.

---
 meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/python/python-simplejson_3.8.2.bb +1 -1
index a2a6c40..0c9112e 100644
@@ -14,7 +14,7 @@ SRC_URI[sha256sum] = "d58439c548433adcda98e695be53e526ba940a4b9c44fb9a05d92cd495
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-inherit distutils
+inherit setuptools
 
 RDEPENDS_${PN} = "\
     python-core \
Signature · 1 line
2.8.0