my god, it's a distutils script
This commit is contained in:
parent
f611a49ab2
commit
1e0f3744f8
1 changed files with 22 additions and 0 deletions
22
src/bindings/python/setup.py
Normal file
22
src/bindings/python/setup.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
setup.py for Hammer bindings
|
||||
"""
|
||||
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
setup(name="hammer",
|
||||
version="0.9.0",
|
||||
author="Upstanding Hackers, LLC",
|
||||
description="""The Hammer parser combinator library""",
|
||||
ext_modules=[Extension('_hammer', ['hammer.i'],
|
||||
swig_opts=['-DHAMMER_INTERNAL__NO_STDARG_H', '-I../../'],
|
||||
define_macros = [('SWIG', None)],
|
||||
extra_compile_args = ['-fPIC',
|
||||
'-std=gnu99',],
|
||||
include_dirs=['../../'],
|
||||
library_dirs=['../../'],
|
||||
libraries=['hammer'],)],
|
||||
py_modules=['hammer'],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue