diff mbox series

[meta-python,2/6] python3-pint: add missing runtime dependencies

Message ID 20261108192549.1082715-3-thomas@roosesweb.de
State Under Review
Headers show
Series Fixes for pika, pint, haversine and httpx2 | expand

Commit Message

Thomas Roos Nov. 8, 2026, 7:25 p.m. UTC
pint requires flexcache, flexparser and typing-extensions, but only the
ptest package pulled in flexcache and flexparser, so "import pint" fails
with "No module named 'flexcache'" on an image without the ptest.

pint is extended to native and nativesdk, so flexcache and flexparser
are as well.

AI-Generated: Claude Code, Claude Opus 5.5
Signed-off-by: Thomas Roos <thomas@roosesweb.de>
---
 meta-python/recipes-devtools/python/python3-flexcache_0.3.bb | 2 ++
 .../recipes-devtools/python/python3-flexparser_0.4.bb        | 2 ++
 meta-python/recipes-devtools/python/python3-pint_0.26.2.bb   | 5 +++--
 3 files changed, 7 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb b/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb
index d46f9eb16f..efdeaabf1b 100644
--- a/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb
+++ b/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb
@@ -18,3 +18,5 @@  RDEPENDS:${PN} += " \
 	python3-pickle \
 	python3-typing-extensions \
 "
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb b/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb
index e4e15d1a35..7ab1c713f9 100644
--- a/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb
+++ b/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb
@@ -18,3 +18,5 @@  RDEPENDS:${PN} += " \
 	python3-email \
 	python3-logging \
 "
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb b/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb
index f370da6a57..dba437a0dd 100644
--- a/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb
+++ b/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb
@@ -17,15 +17,16 @@  BBCLASSEXTEND = "native nativesdk"
 PTEST_PYTEST_DIR = "pint"
 
 RDEPENDS:${PN} += " \
+	python3-flexcache \
+	python3-flexparser \
 	python3-packaging \
 	python3-platformdirs \
+	python3-typing-extensions \
 "
 # python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += " \
 	python3-appdirs \
 	python3-attrs \
-	python3-flexcache \
-	python3-flexparser \
 	python3-misc \
 	python3-pytest-benchmark \
 	python3-pytest-subtests \