From 33fdb912b6db220db4ce7f691cb573a222fd1f51 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 15 Dec 2015 00:56:53 -0500 Subject: [PATCH] [build] setup.py changes for parser extension --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index 5bbc4ff0..0c6b0bc4 100644 --- a/setup.py +++ b/setup.py @@ -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'},