Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 752 Bytes
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 = 'no.smile.face@gmail.com',
url = 'http://code.google.com/p/termbox/',
license = 'MIT',
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension('termbox', sourcefiles, extra_compile_args=["-Wno-error=declaration-after-statement"])],
)
Something went wrong with that request. Please try again.