1 | #!/usr/bin/env python2
|
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 = ['pyext/fastlex.c'],
|
7 | undef_macros = ['NDEBUG'],
|
8 | # YYMARKER is sometimes unused; other times it's not
|
9 | # Shut this up for build/dev.sh all. We'll still see it in
|
10 | # C++ inc ase we figure out how to fix it.
|
11 | extra_compile_args = ['-Wno-unused-variable'],
|
12 | )
|
13 |
|
14 | setup(name = 'fastlex',
|
15 | version = '1.0',
|
16 | description = 'Module to speed up lexers',
|
17 | include_dirs = ['.'],
|
18 | ext_modules = [module])
|