Skip to content

The PyDevices stack is frozen into the WASM runtime: boot installs nothing - #4

Merged
bdbarnett merged 4 commits into
mainfrom
build/frozen-stack
Oct 5, 2026
Merged

bdbarnett merged 4 commits into
mainfrom
build/frozen-stack

Conversation

@bdbarnett

Copy link
Copy Markdown

The boot script no longer mip-installs pydevices-desktop; it imports displaydev directly, so a runtime without the stack fails loudly. The vendored runtime carries the whole stack and the desktop board config. The package manager still installs examples and other packages. New test: connecting the simulator installs nothing (proved to fail with an install planted back in).

Verified locally before merging: wasm-verifier checked 204 pages (22 heroes, 6 Read the Docs demo pages, 57 direct-wasm gallery cards, 57 Pyodide cards, the Peter Hinch lists and 59 demos) with 0 mip requests for the stack; 202 run, and the 2 failures (Hinch refresh_lock) fail identically on the published site. With the old runtime swapped in, every page type failed loudly, so the pages really run on the frozen stack. workbench-tester: boot reaches >>> with no mip request, all six VM examples draw, presets apply, the package manager still installs, Playwright 15/15, plus a new test that fails if boot ever installs again. Part of the micropython-pydevices reorg (PyDevices/micropython-pydevices#28).

… at boot; a runtime without it fails loudly

The boot script imported displaydev only after mip-installing pydevices-desktop
when /lib/board_config.mpy was missing. The stack, the desktop board_config
included, is now frozen into the runtime (micropython-pydevices' build_mp.py
with all plus board_configs/desktop), so boot imports it straight away and an
ImportError says the runtime was built without it. The package manager still
installs examples and other packages.
Fails on any request to a mip index during boot. Proved: with a
pydevices-desktop install planted back into the boot script it fails (62
index requests); with the real boot script it passes.
@bdbarnett
bdbarnett merged commit 7314b4c into main Oct 5, 2026
1 of 2 checks passed
@bdbarnett
bdbarnett deleted the build/frozen-stack branch October 5, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant