OILS / pyext / setup_libc.py View on Github | oils.pub

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