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'},