bytecodealliance / componentize-py

Apache License 2.0
158 stars 19 forks source link

Use `wasi-virt`-based VFS to store Python code #23

Open dicej opened 1 year ago

dicej commented 1 year ago

Currently, componentize-py "cheats" by assuming all required Python code will be loaded during the component pre-init step, and thus CPython won't need access to any of those files at runtime. This works surprisingly well, but will certainly break for more dynamic apps.

We should probably build a VFS by default, but also offer an option to use the "cheat" if desired.