File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -483,9 +483,10 @@ jobs:
483483 # Nightly 1.86 as 1.87+ is incompatible with PyOdide as of now
484484 toolchain : nightly-2025-02-01
485485 targets : wasm32-unknown-emscripten
486+ components : rust-src
486487 - uses : actions/setup-python@v5
487488 with :
488- python-version : 3.12
489+ python-version : 3.13
489490 - run : |
490491 pip install pyodide-build>=0.28.0
491492 echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
@@ -494,6 +495,9 @@ jobs:
494495 version : ${{ env.EMSCRIPTEN_VERSION }}
495496 - run : pyodide build
496497 working-directory : ./bindings/python
498+ env :
499+ DEFAULT_CROSS_BUILD_ENV_URL : " https://github.com/pyodide/pyodide/releases/download/0.28.0a3/xbuildenv-0.28.0a3.tar.bz2"
500+ RUSTFLAGS : " -C link-arg=-sSIDE_MODULE=2 -Z link-native-libraries=no -Z emscripten-wasm-eh"
497501
498502 test-ruby :
499503 strategy :
Original file line number Diff line number Diff line change @@ -295,9 +295,10 @@ jobs:
295295 # Nightly 1.86 as 1.87+ is incompatible with PyOdide as of now
296296 toolchain : nightly-2025-02-01
297297 targets : wasm32-unknown-emscripten
298+ components : rust-src
298299 - uses : actions/setup-python@v5
299300 with :
300- python-version : 3.12
301+ python-version : 3.13
301302 - run : |
302303 pip install pyodide-build>=0.28.0
303304 echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
@@ -306,6 +307,9 @@ jobs:
306307 version : ${{ env.EMSCRIPTEN_VERSION }}
307308 - run : pyodide build
308309 working-directory : ./bindings/python
310+ env :
311+ DEFAULT_CROSS_BUILD_ENV_URL : " https://github.com/pyodide/pyodide/releases/download/0.28.0a3/xbuildenv-0.28.0a3.tar.bz2"
312+ RUSTFLAGS : " -C link-arg=-sSIDE_MODULE=2 -Z link-native-libraries=no -Z emscripten-wasm-eh"
309313 - name : Upload wheels
310314 uses : actions/upload-artifact@v4
311315 with :
Original file line number Diff line number Diff line change 1+ [unstable ]
2+ build-std = [" std" , " panic_abort" ]
Original file line number Diff line number Diff line change @@ -49,3 +49,6 @@ build-backend = "maturin"
4949
5050[tool .maturin ]
5151strip = true
52+
53+ [tool .pyodide .build ]
54+ default_cross_build_env_url = " https://github.com/pyodide/pyodide/releases/download/0.28.0a3/xbuildenv-0.28.0a3.tar.bz2"
You can’t perform that action at this time.
0 commit comments