Skip to contentSkip to conversation

python3-setuptools: add missing rdepends for python3-pkg-resources

PATCH New Yu, Mingli 1 participant 1 message Jun 9, 2020

lore
Share & tools
lore

Yu, Mingli

author
#0 lore raw

PATCH 1/1 python3-setuptools: add missing rdepends for python3-pkg-resources

From: Mingli Yu <[email protected]>

Add missing rdepends for python3-pkg-resources to fix below error:

 # python3
 [snip]
 import pkg_resources
 [snip]
 ModuleNotFoundError: No module named 'plistlib'
 ModuleNotFoundError: No module named 'email'
---
 meta/recipes-devtools/python/python-setuptools.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-devtools/python/python-setuptools.inc +6 -0
index c91cca9f06..032d337424 100644
@@ -48,6 +48,12 @@ BBCLASSEXTEND = "native nativesdk"
 # minimal distributions.
 PACKAGES =+ "${PYTHON_PN}-pkg-resources "
 FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*"
+RDEPENDS_${PYTHON_PN}-pkg-resources = "\
+  ${PYTHON_PN}-compression \
+  ${PYTHON_PN}-email \
+  ${PYTHON_PN}-plistlib \
+  ${PYTHON_PN}-pprint \
+"
 # Due to the way OE-Core implemented native recipes, the native class cannot
 # have a dependency on something that is not a recipe name. Work around that by
 # manually setting RPROVIDES.
Signature · 1 line
2.24.1