forked from nsf/termbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
23 lines (19 loc) · 771 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import glob
import platform
sourcefiles = ['src/python/termboxmodule.pyx'] + glob.glob('src/*.c')
with open('src/python/termboxconfig.pyx', 'w') as f:
f.write("DEF PY_MAJOR_VERSION = %s\n" % platform.python_version()[0])
setup(
name = 'termbox',
version = '1.0.1a1',
description = 'A simple and clean ncurses alternative',
author = 'nsf',
author_email = '[email protected]',
url = 'http://code.google.com/p/termbox/',
license = 'MIT',
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension('termbox', sourcefiles, extra_compile_args=["-D_XOPEN_SOURCE", "-Wno-error=declaration-after-statement"])],
)