Skip to content

Commit daf67ff

Browse files
committed
Test remove limited API
1 parent 089e8c3 commit daf67ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build_libtcod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ 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]] = [] # [("Py_LIMITED_API", Py_LIMITED_API)]
166166

167167
sources += walk_sources("tcod/")
168168
sources += walk_sources("libtcod/src/libtcod/")
@@ -240,7 +240,7 @@ def walk_sources(directory: str) -> Iterator[str]:
240240
extra_compile_args=extra_compile_args,
241241
extra_link_args=extra_link_args,
242242
define_macros=define_macros,
243-
py_limited_api=True,
243+
# py_limited_api=True,
244244
)
245245

246246
CONSTANT_MODULE_HEADER = '''"""Constants from the libtcod C API.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ Source = "https://github.com/libtcod/python-tcod"
7474
Tracker = "https://github.com/libtcod/python-tcod/issues"
7575
Forum = "https://github.com/libtcod/python-tcod/discussions"
7676

77-
[tool.distutils.bdist_wheel]
78-
py-limited-api = "cp310"
77+
#[tool.distutils.bdist_wheel]
78+
#py-limited-api = "cp310"
7979

8080
[tool.setuptools_scm]
8181
write_to = "tcod/version.py"

0 commit comments

Comments
 (0)