Last active
May 10, 2025 12:36
-
-
Save kazuki0824/b5ca3d833f91db07f56750987b13c479 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt update | |
| apt install git build-essential curl wget nano -y | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| source $HOME/.local/bin/env | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ | |
| -y \ | |
| --default-toolchain nightly \ | |
| --target wasm32-unknown-emscripten | |
| . "$HOME/.cargo/env" | |
| git clone https://github.com/kazuki0824/uv-cibuildwheel-ruff-coverage-template | |
| cd uv-cibuildwheel-ruff-coverage-template | |
| uv venv --python 3 | |
| . ./.venv/bin/activate | |
| git clone https://github.com/emscripten-core/emsdk.git | |
| pushd emsdk | |
| ./emsdk install 3.1.74 # latest | |
| ./emsdk activate 3.1.74 # latest | |
| source ./emsdk_env.sh | |
| popd | |
| uvx --from pyodide-build --with pyodide-cli pyodide xbuildenv install --url https://github.com/pyodide/pyodide-build-environment-nightly/releases/download/20250320/xbuildenv.tar.bz2 | |
| # https://pyodide.org/en/stable/development/abi.html#the-rust-sysroot | |
| # RUSTFLAGS="-Zemscripten-wasm-eh -Zbuild-std" | |
| uvx --from pyodide-build --with pyodide-cli pyodide build | |
| deactivate | |
| rm -rf ./.venv/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment