-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (63 loc) · 2.38 KB
/
setup.py
File metadata and controls
74 lines (63 loc) · 2.38 KB
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
import os
import sys
import shutil
from setuptools import setup, find_packages
if os.path.exists('build') == True:
print("build exists")
shutil.rmtree('./build')
try:
import requests
except ImportError:
sys.stderr.write('requests is not installed, you can find it at: https://docs.python-requests.org/en/latest/ \n')
sys.exit()
if [int(dgt) for dgt in requests.__version__.split('.')[:2]] < [2, 0]:
sys.stderr.write('DomainMapper requires requests v2.0 or later, you can find it at: https://docs.python-requests.org/en/latest/ \n')
sys.exit()
try:
import scipy
except ImportError:
sys.stderr.write('SciPy is not installed, you can find it at: https://scipy.org/ \n')
sys.exit()
if [int(dgt) for dgt in scipy.__version__.split('.')[:2]] < [1, 6]:
sys.stderr.write('DomainMapper requires scipy v1.6 or later, you can find it at: https://scipy.org/ \n')
sys.exit()
try:
import Bio
except ImportError:
sys.stderr.write('BioPython is not installed, you can find it at: https://biopython.org/ \n')
sys.exit()
if [int(dgt) for dgt in Bio.__version__.split('.')[:2]] < [1, 6]:
sys.stderr.write('DomainMapper requires BioPython v1.6 or later, you can find it at: https://biopython.org/ \n')
sys.exit()
try:
import numpy
except ImportError:
sys.stderr.write('numpy is not installed, you can find it at: https://numpy.org/ \n')
sys.exit()
if [int(dgt) for dgt in numpy.__version__.split('.')[:2]] < [1, 17]:
sys.stderr.write('DomainMapper requires numpy v1.17 or later, you can find it at: https://numpy.org/ \n')
sys.exit()
if sys.version_info[:2] < (3, 4):
print("DomainMapper requires Python 3.4 or later. Python {}.{} detected".format(*sys.version_info[:2]))
print("Please upgrade your version of Python.")
sys.exit(-1)
setup(
name = "DomainMapper",
version = "3.0.2",
author = "Edgar Manriquez-Sandoval - Fried Lab - JHU",
author_email = "emanriq1@jhu.edu",
url="https://github.com/FriedLabJHU/DomainMapper",
description = ("A parser for hmmscan full outputs built around ECOD domain definitions"),
packages=["DomainMapper"],
package_dir = {'':'src'},
install_requires=[
"requests",
"bio",
"numpy",
"scipy"
],
package_data={'': ['ecod.latest.domains.npy']},
include_package_data=True,
scripts=['src/DomainMapper/dommap'],
python_requires=">=3.5"
)