Skip to content

Commit fa1eb6e

Browse files
committed
fixup! Build Pyodide wheel
1 parent b81b3a6 commit fa1eb6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_libtcod.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ def walk_sources(directory: str) -> Iterator[str]:
162162

163163
libraries: list[str] = [*build_sdl.libraries]
164164
library_dirs: list[str] = [*build_sdl.library_dirs]
165-
define_macros: list[tuple[str, Any]] = [("Py_LIMITED_API", Py_LIMITED_API)]
165+
define_macros: list[tuple[str, Any]] = []
166+
167+
if "PYODIDE" not in os.environ:
168+
define_macros.append(("Py_LIMITED_API", Py_LIMITED_API))
166169

167170
sources += walk_sources("tcod/")
168171
sources += walk_sources("libtcod/src/libtcod/")

0 commit comments

Comments
 (0)