Bug 16229 - Drop codegen, use ast.unparse()
Summary: Drop codegen, use ast.unparse()
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 6.0
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 6.1 M2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-04-02 10:36 UTC by Ross Burton
Modified: 2026-07-21 15:55 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.