Skip to content
Commit Detail

Commit 1bf1c83

Author
Hood Chatham <roberthoodchatham@gmail.com> 2024-07-26 21:49:25 +0200
Parents
32d67fd
Tree
4cc5409
Load Pyodide runtime from external capnproto file (#2430)

These changes are needed to load the Pyodide runtime from an external capnproto
file. In workerd, we'll keep loading Pyodide in the same way, but we moved this
to WorkerdAPI. In our internal codebase, we now download the bundle and call
`setPyodideBundleData` when we load the first Python worker. Then when setting
up the module registry, we add the bundle from `pyodideBundleGlobal`.

TODO in followups:
1. Make workerd load the bundle in the same way
2. Add support for multiple versions of the bundle
3. Testing?

Files changed