-
Notifications
You must be signed in to change notification settings - Fork 51
/
setup.py
37 lines (31 loc) · 862 Bytes
/
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
from setuptools import setup, Extension
MAJOR_VERSION = 1
MINOR_VERSION = 0
PATCH_VERSION = 0
aisparser_module = Extension(
name='_aisparser',
# If some macros are needed
define_macros=[
('MAJOR_VERSION', MAJOR_VERSION),
('MINOR_VERSION', MINOR_VERSION),
('PATCH_VERSION', PATCH_VERSION)
],
sources=[
'c/src/access.c',
'c/src/imo.c',
'c/src/nmea.c',
'c/src/seaway.c',
'c/src/sixbit.c',
'c/src/vdm_parse.c',
'python/linux/aisparser.i',
]
)
setup(
name = 'python-aisparser',
description = 'AIS Parsing library',
url = 'https://github.com/bcl/aisparser',
version = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION),
py_modules=['aisparser'],
package_dir = {'': 'python/linux'},
ext_modules = [aisparser_module],
)