Skip to content

Commit 3743714

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Parse SDL headers from EMSDK during Pyodide builds
1 parent 21cbf9e commit 3743714

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ jobs:
330330
fetch-depth: ${{ env.git-depth }}
331331
- name: Checkout submodules
332332
run: git submodule update --init --recursive --depth 1
333+
- uses: libsdl-org/setup-sdl@6574e20ac65ce362cd12f9c26b3a5e4d3cd31dee
334+
with:
335+
install-linux-dependencies: true
336+
build-type: "Debug"
337+
version: "3.2.4"
333338
- uses: pypa/cibuildwheel@v3.0.0
334339
env:
335340
CIBW_BUILD: cp313-pyodide_wasm32

build_sdl.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ def get_emscripten_include_dir() -> Path:
269269
SDL_BUNDLE_PATH = unpack_sdl(SDL_BUNDLE_VERSION)
270270

271271
SDL_INCLUDE: Path
272-
if "PYODIDE" in os.environ:
273-
SDL_INCLUDE = get_emscripten_include_dir()
274-
elif sys.platform == "win32" and SDL_PARSE_PATH is not None:
272+
if sys.platform == "win32" and SDL_PARSE_PATH is not None:
275273
SDL_INCLUDE = SDL_PARSE_PATH / "include"
276274
elif sys.platform == "darwin" and SDL_PARSE_PATH is not None:
277275
SDL_INCLUDE = SDL_PARSE_PATH / "Versions/A/Headers"

0 commit comments

Comments
 (0)