Skip to content

Commit 67a6d55

Browse files
committed
compiled pyd file should stay in the package now
1 parent a046bbd commit 67a6d55

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

tdl/_libtcod.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9190,29 +9190,29 @@ static const struct _cffi_type_context_s _cffi_type_context = {
91909190

91919191
#ifdef PYPY_VERSION
91929192
PyMODINIT_FUNC
9193-
_cffi_pypyinit_tdl/_libtcod(const void *p[])
9193+
_cffi_pypyinit_tdl\\_libtcod(const void *p[])
91949194
{
91959195
p[0] = (const void *)0x2601;
91969196
p[1] = &_cffi_type_context;
91979197
}
91989198
# ifdef _MSC_VER
91999199
PyMODINIT_FUNC
92009200
# if PY_MAJOR_VERSION >= 3
9201-
PyInit_tdl/_libtcod(void) { return NULL; }
9201+
PyInit_tdl\\_libtcod(void) { return NULL; }
92029202
# else
9203-
inittdl/_libtcod(void) { }
9203+
inittdl\\_libtcod(void) { }
92049204
# endif
92059205
# endif
92069206
#elif PY_MAJOR_VERSION >= 3
92079207
PyMODINIT_FUNC
9208-
PyInit_tdl/_libtcod(void)
9208+
PyInit_tdl\\_libtcod(void)
92099209
{
9210-
return _cffi_init("tdl/_libtcod", 0x2601, &_cffi_type_context);
9210+
return _cffi_init("tdl\\_libtcod", 0x2601, &_cffi_type_context);
92119211
}
92129212
#else
92139213
PyMODINIT_FUNC
9214-
inittdl/_libtcod(void)
9214+
inittdl\\_libtcod(void)
92159215
{
9216-
_cffi_init("tdl/_libtcod", 0x2601, &_cffi_type_context);
9216+
_cffi_init("tdl\\_libtcod", 0x2601, &_cffi_type_context);
92179217
}
92189218
#endif

tdl/build_libtcod.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,7 @@
472472
473473
""")
474474

475-
module_name = '_libtcod'
476-
477-
478-
ffi.set_source(module_name, """
475+
ffi.set_source('tdl._libtcod', """
479476
#include <libtcod.h>
480477
481478
void set_char(TCOD_console_t console, int x, int y,

tdl/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.2.0

0 commit comments

Comments
 (0)