Skip to content

Fix migen compatibility with Python 3.14#2407

Merged
enjoy-digital merged 2 commits intoenjoy-digital:masterfrom
helium729:master
Jan 29, 2026
Merged

Fix migen compatibility with Python 3.14#2407
enjoy-digital merged 2 commits intoenjoy-digital:masterfrom
helium729:master

Conversation

@helium729
Copy link
Contributor

Fixing issue #2399 to support Python 3.14+

helium729 and others added 2 commits January 29, 2026 14:34
Python 3.14 introduces a new opcode `LOAD_FAST_BORROW` which breaks `migen`'s bytecode analysis for name extraction.
Since `migen` is currently unmaintained upstream, this commit adds a monkey patch in `litex/__init__.py` to add `LOAD_FAST_BORROW` to `migen.fhdl.tracer._load_build_opcodes`.
This ensures that `litex` works correctly on Python 3.14+.
Fix migen compatibility with Python 3.14
@enjoy-digital
Copy link
Owner

Thanks @helium729!

@enjoy-digital enjoy-digital merged commit b3d0f02 into enjoy-digital:master Jan 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants