-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
41 lines (33 loc) · 1.59 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
__author__ = 'mahajrod'
import os
from setuptools import setup, find_packages
def get_list_of_files(list_of_dirs_and_files, expression=None, recursive=True):
file_list = []
for entry in [list_of_dirs_and_files] if isinstance(list_of_dirs_and_files, str) else list_of_dirs_and_files:
if os.path.isdir(entry):
files_in_dir = ["%s%s" % (entry if entry[-1] == "/" else (entry+"/"), filename)
for filename in sorted(filter(expression, os.listdir(entry))
if expression else os.listdir(entry))]
if recursive:
for filename in files_in_dir:
if os.path.isdir(filename):
file_list += get_list_of_files([filename], expression=expression, recursive=True)
else:
file_list.append(filename)
else:
file_list += files_in_dir
elif os.path.exists(entry):
file_list.append(os.path.abspath(entry))
else:
print("%s does not exist" % entry)
return file_list
dependencies = ['scipy', 'numpy', 'pandas', 'matplotlib', 'venn',
'biopython', 'xmltodict', 'bcbio-gff', 'statsmodels', 'xlsxwriter', 'ete3', "routoolpa"]
setup(name='mavr',
version='0.113',
packages=find_packages(),
author='Sergei F. Kliver',
author_email='mahajrod@gmail.com',
install_requires=dependencies,
scripts=get_list_of_files("scripts/"),
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),)