All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-pint: add setuptools and packaging to RDEPENDS
@ 2020-07-21 16:21 Trevor Gamblin
  0 siblings, 0 replies; only message in thread
From: Trevor Gamblin @ 2020-07-21 16:21 UTC (permalink / raw)
  To: openembedded-devel

pint needs setuptools and packaging to be imported correctly:

>>> import pint
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/pint/__init__.py", line 28, in <module>
    from .registry import LazyRegistry, UnitRegistry
  File "/usr/lib/python3.8/site-packages/pint/registry.py", line 49, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Add them to RDEPENDS to fix this.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
 meta-python/recipes-devtools/python/python3-pint_0.14.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pint_0.14.bb b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
index 8e1630476..333b015a9 100644
--- a/meta-python/recipes-devtools/python/python3-pint_0.14.bb
+++ b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
@@ -21,6 +21,11 @@ SRC_URI += " \
 	file://run-ptest \
 "
 
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-setuptools \
+    ${PYTHON_PN}-packaging \
+"
+
 RDEPENDS_${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
-- 
2.26.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-21 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 16:21 [meta-python][PATCH] python3-pint: add setuptools and packaging to RDEPENDS Trevor Gamblin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.