]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3-setuptools: add missing rdepends for python3-pkg-resources
authorMingli Yu <mingli.yu@windriver.com>
Tue, 9 Jun 2020 07:27:20 +0000 (15:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Jun 2020 12:18:04 +0000 (13:18 +0100)
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'

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python-setuptools.inc

index c91cca9f06b6dadf6a9ab15fa94ed6cffd5a3ca7..032d33742494cbd1d8390a072a9abf84b72c5562 100644 (file)
@@ -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.