diff mbox series

[6/6,v3] python3: add _ast_unparse to core

Message ID 20260109150651.469332-7-tgamblin@baylibre.com
State New
Headers show
Series python3: upgrade 3.13.11 -> 3.14.2 | expand

Commit Message

Trevor Gamblin Jan. 9, 2026, 3:06 p.m. UTC
Without this, we will see import errors for modules that use
annotationlib like so:

|../../python3.14/annotationlib.py:487: in __repr__\n'
|    return ast.unparse(self.__ast_node__)\n'
|           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
|../../python3.14/ast.py:622: in unparse\n'
|    from _ast_unparse import Unparser as _Unparser\n'
|E   ModuleNotFoundError: No module named '_ast_unparse'\n"

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
 meta/recipes-devtools/python/python3/python3-manifest.json | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json
index 691fb22202..ff84f2d305 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -188,6 +188,7 @@ 
             "${libdir}/python${PYTHON_MAJMIN}/UserString.py",
             "${libdir}/python${PYTHON_MAJMIN}/__future__.py",
             "${libdir}/python${PYTHON_MAJMIN}/_abcoll.py",
+            "${libdir}/python${PYTHON_MAJMIN}/_ast_unparse.py",
             "${libdir}/python${PYTHON_MAJMIN}/_bootlocale.py",
             "${libdir}/python${PYTHON_MAJMIN}/_collections_abc.py",
             "${libdir}/python${PYTHON_MAJMIN}/_colorize.py",