-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
73 lines (66 loc) · 2.11 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
# Copyright (c) 2014-2016 Genome Research Ltd.
#
# This file is part of IVA.
#
# IVA is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
import os
import glob
import sys
import shutil
from setuptools import setup, find_packages
required_progs = [
'kmc',
'kmc_dump',
'nucmer',
'delta-filter',
'show-coords',
'samtools',
'smalt'
]
found_all_progs = True
print('Checking dependencies found in path:')
for program in required_progs:
if shutil.which(program) is None:
found_all_progs = False
found = ' NOT FOUND'
else:
found = ' OK'
print(found, program, sep='\t')
if not found_all_progs:
print('Cannot install because some dependencies not found.', file=sys.stderr)
sys.exit(1)
setup(
name='iva',
version='1.0.9',
description='Iterative Virus Assembler',
packages = find_packages(),
package_data={'iva': ['gage/*', 'ratt/*', 'read_trim/*', 'test_run_data/*']},
author='Martin Hunt',
author_email='path-help@sanger.ac.uk',
url='https://github.com/sanger-pathogens/iva',
scripts=glob.glob('scripts/*'),
test_suite='nose.collector',
tests_require=['nose >= 1.3'],
install_requires=[
'pyfastaq >= 3.10.0',
'networkx >= 1.7',
'pysam >= 0.8.1',
'packaging'
],
license='GPLv3',
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Programming Language :: Python :: 3 :: Only',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
)