Skip to contentSkip to conversation

python-idna: remove bundled egg-info from source

PATCH New Ricardo Salveti 1 participant 1 message Jul 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-idna: remove bundled egg-info from source

Remove bundled egg-info from the source tarball as it will be generated by the build system with the correct permissions during build time.

This fixes a permission denied issue when importing pkg_resources as a normal user.

---
 meta-python/recipes-devtools/python/python-idna.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python-idna.inc +5 -0
index d6d8d92..519812d 100644
@@ -10,4 +10,9 @@ RDEPENDS_${PN}_class-target = "\
     ${PYTHON_PN}-codecs \
 "
 
+# Remove bundled egg-info
+do_compile_prepend() {
+    rm -rf ${S}/idna.egg-info
+}
+
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4