Skip to contentSkip to conversation

python3-pint: add setuptools and packaging to RDEPENDS

PATCH New Trevor Gamblin 1 participant 1 message Jul 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pint: add setuptools and packaging to RDEPENDS

pint needs setuptools and packaging to be imported correctly:

Quoted 1 line
Quoted 1 line
Quoted 1 line

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.

---
 meta-python/recipes-devtools/python/python3-pint_0.14.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-pint_0.14.bb +5 -0
index 8e1630476..333b015a9 100644
@@ -21,6 +21,11 @@ SRC_URI += " \
 	file://run-ptest \
 "
 
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-setuptools \
+    ${PYTHON_PN}-packaging \
+"
+
 RDEPENDS_${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
Signature · 1 line
2.26.2