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