[build] setup.py changes for parser extension

This commit is contained in:
Al
2015-12-15 00:56:53 -05:00
parent c40ab06dd6
commit 33fdb912b6

View File

@@ -115,6 +115,16 @@ def main():
'-DHAVE_CONFIG_H',
'-Wno-unused-function'],
),
Extension('postal._parser',
sources=['python/postal/pyparser.c'],
include_dirs=[this_dir, os.path.join(this_dir, SRC_DIR)],
library_dirs=[os.path.join(this_dir, SRC_DIR, '.libs'),
os.path.join(this_dir, SRC_DIR)],
libraries=['postal'],
extra_compile_args=['-std=c99',
'-DHAVE_CONFIG_H',
'-Wno-unused-function'],
),
],
packages=find_packages('python'),
package_dir={'': 'python'},