hammer/src/bindings/python/setup.py

31 lines
1.2 KiB
Python
Raw Normal View History

2013-11-26 18:12:28 -08:00
#!/usr/bin/env python
"""
setup.py for Hammer bindings
"""
import os.path, sys
2013-11-26 18:12:28 -08:00
from distutils.core import setup, Extension
setup(name="hammer",
version="0.9.0",
author="Upstanding Hackers, LLC",
author_email="hammer@upstandinghackers.com",
url="https://github.com/UpstandingHackers/hammer",
2013-11-26 18:12:28 -08:00
description="""The Hammer parser combinator library""",
ext_modules=[Extension('_hammer', [os.path.join(os.path.dirname(sys.argv[0]),
'hammer.i')],
# swig_opts is set by SConscript
define_macros=[('SWIG', None)],
depends=['allocator.h',
'glue.h',
'hammer.h',
'internal.h',],
extra_compile_args=['-fPIC',
'-std=gnu99',],
include_dirs=['src'],
library_dirs=['src'],
2013-11-26 18:12:28 -08:00
libraries=['hammer'],)],
2013-11-26 18:12:28 -08:00
py_modules=['hammer'],
)