-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (37 loc) · 1.62 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
from setuptools import setup, Extension
VERSION_MAJOR = 2
VERSION_MINOR = 3
VERSION_PATCH = 4
VERSION = '.'.join(map(str, [VERSION_MAJOR,
VERSION_MINOR,
VERSION_PATCH]))
cvarda = Extension('ext',
sources=['python_ext/utils.c',
'python_ext/wrapper.c',
'python_ext/CoverageTable.c',
'python_ext/MNVTable.c',
'python_ext/SequenceTable.c',
'python_ext/SNVTable.c',
'src/avl_tree.c',
'src/cov_table.c',
'src/cov_tree.c',
'src/mnv_table.c',
'src/mnv_tree.c',
'src/seq_table.c',
'src/snv_table.c',
'src/snv_tree.c',
'src/trie.c',
'src/utils.c'],
define_macros=[('VRD_VERSION_MAJOR', VERSION_MAJOR),
('VRD_VERSION_MINOR', VERSION_MINOR),
('VRD_VERSION_PATCH', VERSION_PATCH)],
extra_compile_args=['-Wextra',
'-Wpedantic',
'-std=c99'])
setup(name='cvarda',
version=VERSION,
description='Varda2 Variant frequency database C library',
packages=['cvarda.utils'],
package_dir={'cvarda.utils': './utils'},
ext_package='cvarda',
ext_modules=[cvarda])