[build] setup.py changes for parser extension
This commit is contained in:
10
setup.py
10
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'},
|
||||
|
||||
Reference in New Issue
Block a user