-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
30 lines (23 loc) · 1.02 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
#!/usr/bin/env python3
# encoding: utf-8
from distutils.core import setup, Extension
def configuration(parent_package='', top_path=None):
import numpy
from numpy.distutils.misc_util import Configuration
from numpy.distutils.misc_util import get_info
config = Configuration('',
parent_package,
top_path)
config.add_extension('gen',
['gen.cpp', 'generate.cpp', 'models.cpp'],
extra_objects=['Dependencies/htslib-1.9/libhts.a'],
extra_compile_args=['-std=c++14'], language='c++',
extra_link_args=['-lz', '-llzma', '-lbz2', '-lz', '-lm', '-lpthread', '-lcurl', '-lcrypto'],
include_dirs=['Dependencies/htslib-1.9/htslib', 'include'])
return config
if __name__ == "__main__":
from numpy.distutils.core import setup
setup(
name='gen',
version='0.0.1',
configuration=configuration)