Skip to content

Commit 177433c

Browse files
committed
Build Pyodide wheel
1 parent 740357d commit 177433c

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,25 @@ jobs:
321321
retention-days: 7
322322
compression-level: 0
323323

324+
pyodide:
325+
runs-on: ubuntu-24.04
326+
steps:
327+
- uses: actions/checkout@v4
328+
with:
329+
fetch-depth: ${{ env.git-depth }}
330+
- name: Checkout submodules
331+
run: git submodule update --init --recursive --depth 1
332+
- uses: pypa/cibuildwheel@v3.0.0
333+
env:
334+
CIBW_PLATFORM: pyodide
335+
- name: Archive wheel
336+
uses: actions/upload-artifact@v4
337+
with:
338+
name: wheels-pyodide
339+
path: wheelhouse/*.whl
340+
retention-days: 30
341+
compression-level: 0
342+
324343
publish:
325344
needs: [sdist, build, build-macos, linux-wheels]
326345
runs-on: ubuntu-latest

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@
350350
"pycall",
351351
"pycparser",
352352
"pyinstaller",
353+
"pyodide",
353354
"pypa",
354355
"PYPI",
355356
"pypiwin",

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def check_sdl_version() -> None:
4141
"""Check the local SDL version on Linux distributions."""
4242
if not sys.platform.startswith("linux"):
4343
return
44+
if "PYODIDE" in os.environ:
45+
return
4446
needed_version = "{}.{}.{}".format(*SDL_VERSION_NEEDED)
4547
try:
4648
sdl_version_str = subprocess.check_output(

0 commit comments

Comments
 (0)