Skip to content

Commit 0ae559f

Browse files
committed
fixup! Build Pyodide wheel
1 parent 3a39af5 commit 0ae559f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build_libtcod.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,12 @@ def walk_sources(directory: str) -> Iterator[str]:
156156
*build_sdl.include_dirs,
157157
]
158158

159-
extra_compile_args: list[str] = [*build_sdl.extra_compile_args]
160-
extra_link_args: list[str] = [*build_sdl.extra_link_args]
159+
extra_compile_args: list[str] = []
160+
extra_link_args: list[str] = []
161+
if "PYODIDE" not in os.environ:
162+
extra_compile_args.extend(build_sdl.extra_compile_args)
163+
extra_link_args.extend(build_sdl.extra_link_args)
164+
161165
sources: list[str] = []
162166

163167
libraries: list[str] = [*build_sdl.libraries]

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
SETUP_DIR = Path(__file__).parent # setup.py current directory
1919

20-
assert "PYODIDE" in os.environ
21-
2220

2321
def get_package_data() -> list[str]:
2422
"""Get data files which will be included in the main tcod/ directory."""

0 commit comments

Comments
 (0)