-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
144 lines (135 loc) · 4.09 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#!/usr/bin/env python
from __future__ import division, print_function
import os.path
import numpy
from Cython.Build import cythonize
from setuptools import Extension, setup
from glob import glob
from os.path import join, abspath, split, basename
np_inc = numpy.get_include()
sourcefiles = [os.path.join("BioExt", "tn93", "_tn93.pyx"),
os.path.join("BioExt", "tn93", "tn93.c")]
tn93_extension = cythonize([
Extension(
"BioExt.tn93._tn93",
include_dirs=[os.path.join("BioExt", "tn93")],
sources=sourcefiles
)])
ext_modules = [
Extension(
'BioExt.align._align',
sources=[
os.path.join('BioExt', 'align', '_align.c'),
os.path.join('BioExt', 'align', 'alignment.c')
],
include_dirs=[np_inc],
libraries=['m'],
extra_compile_args=['-O3', '-I.']
),
Extension(
'BioExt.merge._merge',
sources=[
os.path.join('BioExt', 'merge', '_merge.c'),
os.path.join('BioExt', 'merge', 'merge.cpp')
],
extra_compile_args=['-O3', '-I.']
),
Extension(
'BioExt.rateclass._rateclass',
sources=[
os.path.join('BioExt', 'rateclass', '_rateclass.cpp'),
os.path.join('BioExt', 'rateclass', 'rateclass.cpp')
],
extra_compile_args=['-O3', '-I.']
)
] + tn93_extension
setup(
name='bioext',
version='0.21.9',
description='Misc utilities and definitions not included or hidden in BioPython',
author='N Lance Hepler',
author_email='[email protected]',
url='http://github.com/veg/bioext',
license='GNU GPL version 3',
packages=[
'BioExt',
'BioExt.align',
'BioExt.args',
'BioExt.collections',
'BioExt.errorize',
'BioExt.freetype',
'BioExt.freetype.ft_enums',
'BioExt.io',
'BioExt.io.BamIO',
'BioExt.io.LazyAlignIO',
'BioExt.io.SamIO',
'BioExt.merge',
'BioExt.misc',
'BioExt.ndarray',
'BioExt.optimize',
'BioExt.orflist',
'BioExt.phylo',
'BioExt.rateclass',
'BioExt.references',
'BioExt.scorematrices',
'BioExt.stats',
'BioExt.tn93',
'BioExt.uds',
'BioExt.untranslate'
],
package_dir={
'BioExt': 'BioExt',
'BioExt.align': 'BioExt/align',
'BioExt.args': 'BioExt/args',
'BioExt.collections': 'BioExt/collections',
'BioExt.errorize': 'BioExt/errorize',
'BioExt.freetype': 'BioExt/freetype',
'BioExt.freetype.ft_enums': 'BioExt/freetype/ft_enums',
'BioExt.io': 'BioExt/io',
'BioExt.io.BamIO': 'BioExt/io/BamIO',
'BioExt.io.LazyAlignIO': 'BioExt/io/LazyAlignIO',
'BioExt.io.SamIO': 'BioExt/io/SamIO',
'BioExt.merge': 'BioExt/merge',
'BioExt.misc': 'BioExt/misc',
'BioExt.ndarray': 'BioExt/ndarray',
'BioExt.optimize': 'BioExt/optimize',
'BioExt.orflist': 'BioExt/orflist',
'BioExt.phylo': 'BioExt/phylo',
'BioExt.rateclass': 'BioExt/rateclass',
'BioExt.references': 'BioExt/references',
'BioExt.scorematrices': 'BioExt/scorematrices',
'BioExt.stats': 'BioExt/stats',
'BioExt.tn93': 'BioExt/tn93',
'BioExt.uds': 'BioExt/uds',
'BioExt.untranslate': 'BioExt/untranslate'
},
package_data={
'BioExt': [
'data/fonts/ttf/*.ttf',
'data/scorematrices/*.txt',
'data/references/cov2/*.*',
'data/references/hxb2/*.*',
'data/references/nl4-3/*.*'
]
},
scripts=[
'scripts/bam2fna',
'scripts/bam2msa',
'scripts/bamclip',
'scripts/bealign',
'scripts/clipedge',
'scripts/msa2bam',
'scripts/seqmerge',
'scripts/translate'
# 'scripts/variants'
],
ext_modules=ext_modules,
install_requires=[
'biopython >=1.78',
'numpy >= 2.0',
'scipy >=0.15',
'pysam >=0.17',
'joblib',
'six'
]
)