name: wasm32-pyodide-dev description: Build, reinstall, and test python-blosc2 wasm32 wheels quickly on Linux using uv, pyodide-build, cibuildwheel, and a local Pyodide venv.
Use When
- You are developing python-blosc2 for
wasm32/Pyodide and need a fast local edit-build-test loop. - You need repeatable commands to build a
cp313Pyodide wheel and run targeted tests.
Assumptions
- OS is Linux.
- Repository root is
python-blosc2. uvis installed and available.- You have a host venv for
pyodide-buildtooling (example:.venv-pyodide-host).
Core Workflow
- Install host tooling with
uvand pinwheelif needed forpyodide xbuildenv. - Install xbuildenv for the target Pyodide version.
- Create or reuse a Pyodide runtime venv.
- Build a wasm32 wheel with
cibuildwheel --platform pyodide. - Reinstall the freshly built wheel into the Pyodide runtime venv.
- Run focused
pytestmodules first, then expand coverage.
Fast Commands
See references/commands.md for copy/paste one-liners.
Troubleshooting
ModuleNotFoundError: No module named 'wheel.cli': pinwheel==0.45.1in host tooling venv.- Missing runtime deps inside Pyodide venv: install
numpy msgpack ndindex requeststhere. - Pure-Python file tweaks without full rebuild: copy updated module files from
src/blosc2/into installedsite-packages/blosc2/.
Notes
- Keep wasm32 runs deterministic by preferring single-thread settings in tests where needed.
- For DSL/JIT benchmarks, compare
--mode off|on|auto|allto separate JIT benefit from baseline runtime.