-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
104 lines (100 loc) · 3.2 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
from pysam import get_include as pysam_get_include
extra_compile_args = ["-Wno-unused-function"]
extensions = [
Extension(
"aldy.indelpost.variant",
["aldy/indelpost/variant.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.utilities",
["aldy/indelpost/utilities.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.pileup",
["aldy/indelpost/pileup.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.varaln",
["aldy/indelpost/varaln.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.contig",
["aldy/indelpost/contig.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.local_reference",
["aldy/indelpost/local_reference.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.softclip",
["aldy/indelpost/softclip.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.localn",
["aldy/indelpost/localn.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.gappedaln",
["aldy/indelpost/gappedaln.pyx"],
include_dirs=pysam_get_include(),
extra_compile_args=extra_compile_args,
),
Extension(
"aldy.indelpost.sswpy",
sources=["aldy/indelpost/sswpy.pyx", "aldy/indelpost/ssw.c"],
extra_compile_args=extra_compile_args,
),
]
exec(open("aldy/version.py").read())
setup(
name="aldy",
version=__version__,
description="A tool for allelic decomposition (haplotype reconstruction) "
+ "and exact genotyping of highly polymorphic and structurally variant genes",
url="http://aldy.csail.mit.edu/",
author="Ibrahim Numanagić",
author_email="inumanag@mit.edu",
download_url="https://github.com/inumanag/aldy/tarball/master",
license="Aldy/IURTC License. Free for academic/non-commercial use.",
keywords=["cyp2d6", "adme", "genotyping", "illumina", "pgrnseq", "getrm", "allele"],
install_requires=[
"pyyaml",
"logbook",
"pysam",
"pytest",
"ortools",
"natsort",
"mappy",
"numpy",
"cython",
],
entry_points={"console_scripts": ["aldy = aldy.__main__:console"]},
packages=find_packages(),
include_package_data=True,
cmdclass={"build_ext": build_ext},
ext_modules=cythonize(extensions, compiler_directives={"language_level": "3"}),
test_suite="pytest-runner",
tests_require=["pytest"],
)