Permalink
Browse files

Move termboxmodule.pyx to its own directory.

  • Loading branch information...
nsf committed Aug 3, 2013
1 parent a0e4505 commit 1e68be174da93df2c7c0f5163d452fcaae8d32c6
Showing with 5 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +2 −3 setup.py
  3. +1 −1 src/{ → python}/termboxmodule.pyx
View
@@ -1,3 +1,5 @@
build
.waf*
.lock*
+src/python/termboxconfig.pyx
+src/python/termboxmodule.c
View
@@ -5,10 +5,9 @@
import glob
import platform
-sourcefiles = ['src/termboxmodule.pyx'] + \
- list(filter(lambda n: n != "src/termboxmodule.c", glob.glob('src/*.c')))
+sourcefiles = ['src/python/termboxmodule.pyx'] + glob.glob('src/*.c')
-with open('src/termboxconfig.pyx', 'w') as f:
+with open('src/python/termboxconfig.pyx', 'w') as f:
f.write("DEF PY_MAJOR_VERSION = %s\n" % platform.python_version()[0])
setup(
@@ -10,7 +10,7 @@ cdef extern from "stdint.h":
ctypedef unsigned short uint16_t
ctypedef signed int int32_t
-cdef extern from "termbox.h":
+cdef extern from "../termbox.h":
struct tb_event:
uint16_t type
uint32_t ch

0 comments on commit 1e68be1

Please sign in to comment.