Skip to content

Commit 9b14e6f

Browse files
committed
BLD: wasm
1 parent 5057d98 commit 9b14e6f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ jobs:
148148
with:
149149
python-version: "3.13"
150150

151+
- name: Pyodide setup
152+
if: ${{ matrix.buildplat[1] == 'pyodide_wasm32' }}
153+
run: |
154+
echo "CIBW_PLATFORM=pyodide" >> "$GITHUB_ENV"
155+
151156
- name: Build wheel
152157
env:
153158
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
154159
SRC: ${{ github.workspace }}/numpy-src
155160
run: |
156-
if [[ $CIBW_BUILD == *pyodide_wasm32 ]]; then
157-
# specifying CIBW_PLATFORM is required to get the wasm build to work
158-
export CIBW_PLATFORM="pyodide"
159-
fi
160161
python -m pip install cibuildwheel==3.1.1
161162
python -m cibuildwheel numpy-src --config-file cibuildwheel.toml --output-dir ./dist
162163

0 commit comments

Comments
 (0)