Skip to content

Commit 1e68be1

Browse files
committed
Move termboxmodule.pyx to its own directory.
1 parent a0e4505 commit 1e68be1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
build
22
.waf*
33
.lock*
4+
src/python/termboxconfig.pyx
5+
src/python/termboxmodule.c

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
import glob
66
import platform
77

8-
sourcefiles = ['src/termboxmodule.pyx'] + \
9-
list(filter(lambda n: n != "src/termboxmodule.c", glob.glob('src/*.c')))
8+
sourcefiles = ['src/python/termboxmodule.pyx'] + glob.glob('src/*.c')
109

11-
with open('src/termboxconfig.pyx', 'w') as f:
10+
with open('src/python/termboxconfig.pyx', 'w') as f:
1211
f.write("DEF PY_MAJOR_VERSION = %s\n" % platform.python_version()[0])
1312

1413
setup(

src/termboxmodule.pyx src/python/termboxmodule.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cdef extern from "stdint.h":
1010
ctypedef unsigned short uint16_t
1111
ctypedef signed int int32_t
1212

13-
cdef extern from "termbox.h":
13+
cdef extern from "../termbox.h":
1414
struct tb_event:
1515
uint16_t type
1616
uint32_t ch

0 commit comments

Comments
 (0)