-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 2.42 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'''
chimerascan
Created on Jan 5, 2011
@author: mkiyer
'''
from distutils.core import setup
from distutils.extension import Extension
# local imports
import chimerascan
# ------ Setup instructions -------------------------------------------------
setup_kwargs = {"name": "chimerascan",
"version": chimerascan.__version__,
"description": "chimeric transcript discovery from RNA-seq",
"long_description": __doc__,
"author": "Matthew Iyer",
"author_email": "mkiyer@umich.edu",
"license": "GPL3",
"platforms": "Linux",
"url": "http://chimerascan.googlecode.com",
"packages": ["chimerascan",
"chimerascan.bx",
"chimerascan.pipeline",
"chimerascan.lib",
"chimerascan.tools"],
"package_data": {'chimerascan.tools': ['table_template.html']},
"scripts": ["chimerascan/chimerascan_run.py",
"chimerascan/chimerascan_index.py",
"chimerascan/tools/chimerascan_html_table.py",
"chimerascan/tools/chimerascan_build_annotation.py"]}
# ---- Extension Modules ----------------------------------------------------
def get_cython_extension_modules():
# Interval clustering
bx_cluster = Extension("chimerascan.bx.cluster",
["chimerascan/bx/cluster.pyx", "chimerascan/bx/intervalcluster.c"],
include_dirs=["chimerascan/bx"])
# Interval intersection
bx_interval = Extension("chimerascan.bx.intersection",
["chimerascan/bx/intersection.pyx" ])
return [bx_cluster, bx_interval]
def get_c_extension_modules():
# Interval clustering
bx_cluster = Extension("chimerascan.bx.cluster",
["chimerascan/bx/cluster.c", "chimerascan/bx/intervalcluster.c"],
include_dirs=["chimerascan/bx"])
# Interval intersection
bx_interval = Extension("chimerascan.bx.intersection",
["chimerascan/bx/intersection.c"])
return [bx_cluster, bx_interval]
def main():
setup(ext_modules=get_c_extension_modules(),
**setup_kwargs)
if __name__ == '__main__':
main()