File: setup.py

package info (click to toggle)
termbox 1.1.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 864 kB
  • sloc: python: 12,912; ansic: 1,717; makefile: 20
file content (23 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (3)
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 = '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=["-D_XOPEN_SOURCE", "-Wno-error=declaration-after-statement"])],
)