forked from openvenues/pypostal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
111 lines (103 loc) · 4.34 KB
/
setup.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import argparse
import os
import subprocess
import sys
from setuptools import setup, Extension, Command, find_packages
from setuptools.command.build_py import build_py
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install
from distutils.errors import DistutilsArgError
this_dir = os.path.realpath(os.path.dirname(__file__))
VERSION = '1.1.9'
def main():
setup(
name='postal',
version=VERSION,
install_requires=[
'six',
],
setup_requires=[
'nose>=1.0'
],
ext_modules=[
Extension('postal._expand',
sources=['postal/pyexpand.c', 'postal/pyutils.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
Extension('postal._parser',
sources=['postal/pyparser.c', 'postal/pyutils.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
Extension('postal._token_types',
sources=['postal/pytokentypes.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
Extension('postal._tokenize',
sources=['postal/pytokenize.c', 'postal/pyutils.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
Extension('postal._normalize',
sources=['postal/pynormalize.c', 'postal/pyutils.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
Extension('postal._near_dupe',
sources=['postal/pyneardupe.c', 'postal/pyutils.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
Extension('postal._dedupe',
sources=['postal/pydedupe.c', 'postal/pyutils.c'],
libraries=['postal'],
include_dirs=['/usr/local/include'],
library_dirs=['/usr/local/lib'],
extra_compile_args=['-std=c99'],
),
],
packages=find_packages(),
package_data={
'postal': ['*.h']
},
zip_safe=False,
url='https://github.com/openvenues/pypostal',
download_url='https://github.com/openvenues/pypostal/tarball/{}'.format(VERSION),
description='Python bindings to libpostal for fast international address parsing/normalization',
license='MIT License',
maintainer='mapzen.com',
maintainer_email='[email protected]',
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Programming Language :: C',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Topic :: Text Processing :: Linguistic',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
if __name__ == '__main__':
main()