From 1e47ffd8eab757b677198768f63f1821591da84a Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 16 Aug 2026 19:44:19 -0400 Subject: [PATCH] Clean stale Pyodide wheels before builds Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- python/cpp/Makefile.jinja | 1 + python/cppjswasm/Makefile.jinja | 1 + python/rust/Makefile.jinja | 1 + python/rustjswasm/Makefile.jinja | 1 + 4 files changed, 4 insertions(+) diff --git a/python/cpp/Makefile.jinja b/python/cpp/Makefile.jinja index 53e14ac..706008d 100644 --- a/python/cpp/Makefile.jinja +++ b/python/cpp/Makefile.jinja @@ -88,6 +88,7 @@ coverage-py: ## run python tests and collect test coverage test: test-py ## run all tests {% if add_pyodide %} test-pyodide: ## build and test the Python package in Pyodide + rm -rf dist/pyodide uvx --from cibuildwheel==4.2.0 cibuildwheel --only cp314-pyodide_wasm32 --output-dir dist/pyodide . {% endif %} coverage: coverage-py ## run all tests and collect test coverage diff --git a/python/cppjswasm/Makefile.jinja b/python/cppjswasm/Makefile.jinja index 50d0357..c47f571 100644 --- a/python/cppjswasm/Makefile.jinja +++ b/python/cppjswasm/Makefile.jinja @@ -140,6 +140,7 @@ coverage-cpp: ## run C++ tests and collect test coverage test: test-py test-js test-cpp ## run all tests {% if add_pyodide %} test-pyodide: ## build and test the Python package in Pyodide + rm -rf dist/pyodide uvx --from cibuildwheel==4.2.0 cibuildwheel --only cp314-pyodide_wasm32 --output-dir dist/pyodide . {% endif %} coverage: coverage-py coverage-js coverage-cpp ## run all tests and collect test coverage diff --git a/python/rust/Makefile.jinja b/python/rust/Makefile.jinja index 1201c95..e1ebf22 100644 --- a/python/rust/Makefile.jinja +++ b/python/rust/Makefile.jinja @@ -115,6 +115,7 @@ test: test-py test-rs ## run all tests {% if add_pyodide %} test-pyodide: ## build and test the Python package in Pyodide rustup target add wasm32-unknown-emscripten + rm -rf dist/pyodide uvx --from cibuildwheel==4.2.0 cibuildwheel --only cp314-pyodide_wasm32 --output-dir dist/pyodide . {% endif %} coverage: coverage-py coverage-rs ## run all tests and collect test coverage diff --git a/python/rustjswasm/Makefile.jinja b/python/rustjswasm/Makefile.jinja index 6998d74..cefbb94 100644 --- a/python/rustjswasm/Makefile.jinja +++ b/python/rustjswasm/Makefile.jinja @@ -138,6 +138,7 @@ test: test-py test-js test-rs ## run all tests {% if add_pyodide %} test-pyodide: ## build and test the Python package in Pyodide rustup target add wasm32-unknown-emscripten + rm -rf dist/pyodide uvx --from cibuildwheel==4.2.0 cibuildwheel --only cp314-pyodide_wasm32 --output-dir dist/pyodide . {% endif %} coverage: coverage-py coverage-js coverage-rs ## run all tests and collect test coverage