File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 78
78
python : " cp313t"
79
79
- buildplat : [ macos13, macosx_x86_64, openblas ]
80
80
python : " cp314t"
81
-
81
+ include :
82
+ - buildplat : [ ubuntu-22.04, pyodide_wasm32, "" ]
83
+ python : " cp312"
84
+ - buildplat : [ ubuntu-22.04, pyodide_wasm32, "" ]
85
+ python : " cp313"
82
86
env :
83
87
IS_32_BIT : ${{ matrix.buildplat[1] == 'win32' }} # used in a cibw_*.sh script
84
88
@@ -147,7 +151,12 @@ jobs:
147
151
- name : Build wheel
148
152
env :
149
153
CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
154
+ SRC : ${{ github.workspace }}/numpy-src
150
155
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
151
160
python -m pip install cibuildwheel==3.1.1
152
161
python -m cibuildwheel numpy-src --config-file cibuildwheel.toml --output-dir ./dist
153
162
Original file line number Diff line number Diff line change @@ -34,3 +34,13 @@ repair-wheel-command = "bash -el ./tools/wheels/repair_windows.sh {wheel} {dest_
34
34
select = [" *-win32" ]
35
35
config-settings = {setup-args = [" --vsenv" , " -Dallow-noblas=true" ], build-dir =" build" }
36
36
repair-wheel-command = " "
37
+
38
+ [tool .cibuildwheel .pyodide ]
39
+ before-test = " pip install -r $SRC/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=$SRC/tools/ci/emscripten/emscripten.meson.cross" , " -Dblas=none" , " -Dlapack=none" ]
You can’t perform that action at this time.
0 commit comments