Skip to content

Commit 6bb68af

Browse files
committed
Reformat build_libtcod.py.
1 parent e139a94 commit 6bb68af

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

build_libtcod.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ def unpack_sdl2(version: str) -> str:
186186
includes = parse_includes()
187187

188188
module_name = "tcod._libtcod"
189-
include_dirs = [".", "libtcod/src/vendor/", "libtcod/src/vendor/utf8proc", "libtcod/src/vendor/zlib/"]
189+
include_dirs = [
190+
".",
191+
"libtcod/src/vendor/",
192+
"libtcod/src/vendor/utf8proc",
193+
"libtcod/src/vendor/zlib/",
194+
]
190195

191196
extra_parse_args = []
192197
extra_compile_args = []
@@ -333,9 +338,11 @@ def fix_header(filepath: str) -> None:
333338
for i, line in enumerate(include.header.split("\n"), 1):
334339
print("%03i %s" % (i, line))
335340
raise
336-
ffi.cdef("""
341+
ffi.cdef(
342+
"""
337343
#define TCOD_COMPILEDVERSION ...
338-
""")
344+
"""
345+
)
339346
ffi.set_source(
340347
module_name,
341348
"#include <tcod/cffi.h>\n#include <SDL.h>",

0 commit comments

Comments
 (0)