1 | #!/usr/bin/env python2 |
2 | from distutils.core import setup, Extension |
3 | |
4 | module = Extension('libc', |
5 | sources = ['pyext/libc.c'], |
6 | # for #include "_build/detected-config.h" |
7 | extra_compile_args = ['-I', '.'], |
8 | undef_macros = ['NDEBUG']) |
9 | |
10 | setup(name = 'libc', |
11 | version = '1.0', |
12 | description = 'Module for libc functions like fnmatch()', |
13 | ext_modules = [module]) |