-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
80 lines (72 loc) · 2.43 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
#!/usr/bin/env python
#
# -----------------------------------------------------------------------------
# Copyright (c) 2016 The Regents of the University of California
#
# This file is part of kevlar (http://github.com/standage/kevlar) and is
# licensed under the MIT license: see LICENSE.
# -----------------------------------------------------------------------------
from setuptools import setup, Extension
import glob
import versioneer
ksw2 = Extension(
'kevlar.alignment',
sources=[
'kevlar/alignment.c', 'third-party/ksw2/ksw2_extz.c', 'src/align.c'
],
include_dirs=['inc/', 'third-party/ksw2/'],
language='c',
)
fermilite = Extension(
'kevlar.assembly',
sources=['kevlar/assembly.c'] + glob.glob('third-party/fermi-lite/*.c'),
include_dirs=['third-party/fermi-lite/'],
extra_link_args=['-lz'],
language='c',
)
sequencemod = Extension(
'kevlar.sequence',
sources=['kevlar/sequence.c'],
language='c'
)
dependencies = [
'pysam>=0.14', 'networkx>=2.0', 'pandas>=0.23', 'scipy>=1.1',
'matplotlib>=2.2', 'intervaltree>=3.0.2'
]
desc = 'Reference-free variant discovery scalable to large eukaryotic genomes'
with open('README.md', 'r') as infile:
longdesc = infile.read()
setup(name='biokevlar',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description=desc,
long_description=longdesc,
long_description_content_type='text/markdown',
url='https://github.com/dib-lab/kevlar',
author='Daniel Standage',
author_email='daniel.standage@gmail.com',
license='MIT',
packages=['kevlar', 'kevlar.cli', 'kevlar.tests'],
package_data={
'kevlar': [
'kevlar/tests/data/*', 'kevlar/tests/data/*/*',
'kevlar/workflows/bam-preproc/*'
]
},
include_package_data=True,
scripts=glob.glob('kevlar/sandbox/*.py'),
ext_modules=[ksw2, fermilite, sequencemod],
setup_requires=dependencies,
install_requires=dependencies,
entry_points={
'console_scripts': ['kevlar = kevlar.__main__:main']
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Bio-Informatics'
],
zip_safe=True)