Bug 16229

Summary: Drop codegen, use ast.unparse()
Product: [Build System, Metadata & Runtime] BitBake Reporter: Ross Burton <ross.burton>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: 6.0   
Target Milestone: 6.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2026-04-02 10:36:32 UTC
bitbake has lib/codegen.py to generate Python source from an AST object.

However, as of Python 3.9 there is ast.unparse() which looks like it does the same thing: https://docs.python.org/3/library/ast.html#ast.unparse.