OILS / pyext / setup_posix.py View on Github | oilshell.org

19 lines, 10 significant
1#!/usr/bin/env python2
2from distutils.core import setup, Extension
3
4# It's named posix_ rather than posix to differentiate it from the stdlib
5# module it's based on.
6
7module = Extension('posix_',
8 sources = ['pyext/posixmodule.c'],
9 # we deleted some entries from the method table; I don't
10 # want to see warnings about it
11 extra_compile_args = ['-Wno-unused-function'],
12 )
13
14setup(name = 'posix_',
15 version = '1.0',
16 description = 'Our fork of the stdlib module',
17 # For posix_methods.def
18 include_dirs = ['build/oil-defs'],
19 ext_modules = [module])