-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (46 loc) · 1.29 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
from setuptools import setup, Extension, find_packages
# C Extension
genome2_processor_cext = Extension(
'bri', # name of the extension
sources=[
'scc/bri/bri_get.c',
'scc/bri/bri_index.c',
'scc/bri/py_bri_wrapper.c' # include the wrapper
], # source files
extra_compile_args=[
'-O3',
'-std=c99',
'-fsigned-char',
'-D_FILE_OFFSET_BITS=64',
'-g',
'-fPIC'
],
extra_link_args=[
'-L/public/home/fengcong/anaconda2/lib/',
'-fPIC',
'-L/public/agis/chengshifeng_group/fengcong/WGRS/software/htslib-1.18/install_08284/lib/'
],
include_dirs=[
'/public/agis/chengshifeng_group/fengcong/WGRS/software/htslib-1.18/install_08284/include/',
'/public/home/fengcong/anaconda2/envs/py3/include/python3.7m/'
],
library_dirs=[
'/public/agis/chengshifeng_group/fengcong/WGRS/software/htslib-1.18/install_08284/lib/'
],
libraries=['pthread', 'z', 'm', 'lzma', 'hts']
)
setup(
name='SequenceCoordinateConverter',
version='0.2',
packages=find_packages(),
install_requires=[
'pysam',
'pandas'
],
ext_modules=[genome2_processor_cext],
entry_points={
'console_scripts': [
'SCC=scc.main:main',
],
},
)