OILS / opy / _regtest / src / build / setup_fastlex.py View on Github | oilshell.org

14 lines, 10 significant
1#!/usr/bin/env python
2from distutils.core import setup, Extension
3
4# https://stackoverflow.com/questions/4541565/how-can-i-assert-from-python-c-code
5module = Extension('fastlex',
6 sources = ['native/fastlex.c'],
7 undef_macros = ['NDEBUG']
8 )
9
10setup(name = 'fastlex',
11 version = '1.0',
12 description = 'Module to speed up lexers',
13 include_dirs = ['_devbuild/gen'],
14 ext_modules = [module])