-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (60 loc) · 1.78 KB
/
setup.py
File metadata and controls
62 lines (60 loc) · 1.78 KB
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
from setuptools import setup, Extension
from src import NAME, VERSION
import sys,os
try:
__import__('cstatgen')
except ImportError:
sys.stderr.write('Installing cstatgen ...\n')
cwdPath = os.getcwd()
os.chdir('./cstatgen/')
cmd = "python2.7 setup.py install {}".format(" ".join(sys.argv[2:]))
os.system("{} > /dev/null".format(cmd))
os.chdir(cwdPath)
setup(
name = NAME,
version = VERSION,
description = "A novel approach to use sequence data for nonparametric linkage analysis",
author = "Linhai Zhao",
packages = [NAME,'RVNPLcpp'],
scripts = ['src/rvnpl'],
package_dir = {NAME:'src','RVNPLcpp':'cppextend'},
install_requires = ['scipy', 'numpy','sympy','prettyplotlib', 'tornado',
'brewer2mpl','faulthandler', 'matplotlib'],
ext_modules = [
Extension('RVNPLcpp.cconv2',
['cppextend/cconv2.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
Extension('RVNPLcpp.cmissingparents',
['cppextend/missingparents.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
Extension('RVNPLcpp.cmissing_infer',
['cppextend/missing_infer.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
Extension('RVNPLcpp.cpostInv',
['cppextend/postInv.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
Extension('RVNPLcpp.ibd_m_cpp',
['cppextend/ibd_m.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
Extension('RVNPLcpp.ibd_rv_cpp',
['cppextend/ibd_m_rv.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
Extension('RVNPLcpp.sall_cpp',
['cppextend/sall_rv_complete.cpp'],
libraries=['boost_python'],
extra_compile_args=['-std=c++11']
),
]
)