forked from openvenues/pypostal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
61 lines (60 loc) · 2.23 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from setuptools import Extension
def build(setup_kwargs: dict):
setup_kwargs["ext_modules"] = [
Extension(
"pylibpostal._expand",
sources=["pylibpostal/pyexpand.c", "pylibpostal/pyutils.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
Extension(
"pylibpostal._parser",
sources=["pylibpostal/pyparser.c", "pylibpostal/pyutils.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
Extension(
"pylibpostal._token_types",
sources=["pylibpostal/pytokentypes.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
Extension(
"pylibpostal._tokenize",
sources=["pylibpostal/pytokenize.c", "pylibpostal/pyutils.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
Extension(
"pylibpostal._normalize",
sources=["pylibpostal/pynormalize.c", "pylibpostal/pyutils.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
Extension(
"pylibpostal._near_dupe",
sources=["pylibpostal/pyneardupe.c", "pylibpostal/pyutils.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
Extension(
"pylibpostal._dedupe",
sources=["pylibpostal/pydedupe.c", "pylibpostal/pyutils.c"],
libraries=["postal"],
include_dirs=["/usr/local/include"],
library_dirs=["/usr/local/lib"],
extra_compile_args=["-std=c99"],
),
]