Skip to content

Commit abca094

Browse files
committed
BLD: wasm
1 parent 4b2e4b3 commit abca094

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ jobs:
152152
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
153153
run: |
154154
if [[ $CIBW_BUILD == *pyodide_wasm32 ]]; then
155+
# specifying CIBW_PLATFORM is required to get the wasm build to work
155156
export CIBW_PLATFORM="pyodide"
156157
fi
157158
python -m pip install cibuildwheel==3.1.1

cibuildwheel.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,13 @@ repair-wheel-command = "bash -el ./tools/wheels/repair_windows.sh {wheel} {dest_
3434
select = ["*-win32"]
3535
config-settings = {setup-args = ["--vsenv", "-Dallow-noblas=true"], build-dir="build"}
3636
repair-wheel-command = ""
37+
38+
[tool.cibuildwheel.pyodide]
39+
before-test = "pip install -r {project}/requirements/emscripten_test_requirements.txt"
40+
# Pyodide ensures that the wheels are already repaired by auditwheel-emscripten
41+
repair-wheel-command = ""
42+
test-command = "python -m pytest --pyargs numpy -m 'not slow'"
43+
44+
[tool.cibuildwheel.pyodide.config-settings]
45+
build-dir = "build"
46+
setup-args = ["--cross-file=$PWD/tools/ci/emscripten/emscripten.meson.cross", "-Dblas=none", "-Dlapack=none"]

0 commit comments

Comments
 (0)