forked from Topf-Lab/Jwalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (46 loc) · 1.67 KB
/
setup.py
File metadata and controls
54 lines (46 loc) · 1.67 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
import sys, os,shutil
from distutils.core import setup
if os.path.exists('build') == True:
print("build exists")
shutil.rmtree('./build')
try:
import numpy
except ImportError:
sys.stderr.write('numpy is not installed, you can find it at: http://numpy.scipy.org \n')
sys.exit()
#control version
if [int(dgt) for dgt in numpy.__version__.split('.')[:2]] < [1, 6]:
sys.stderr.write('JWalk requires numpy v1.6 or later, you can find it at: http://numpy.scipy.org \n')
sys.exit()
#biopython>=1.51/1.4?
try:
import Bio
except ImportError:
sys.stderr.write('Biopython is not installed, you can find it at: http://biopython.org/wiki/Main_Page \n')
sys.exit()
if [int(dgt) for dgt in Bio.__version__.split('.')[:2]] < [1, 5]:
sys.stderr.write('JWalk requires Biopython v1.5 or later, you can find it at: http://biopython.org/wiki/Main_Page \n')
sys.exit()
# Make sure I have the right Python version.
if sys.version_info[:2] < (3, 5):
print("JWalk requires Python 3.5 or better. Python {}.{} detected".format(*sys.version_info[:2]))
print("Please upgrade your version of Python.")
sys.exit(-1)
setup(
name = "Jwalk",
version = "2.0.0",
author = "Josh Bullock",
author_email = "j.bullock@cryst.bbk.ac.uk",
maintainer = "Edgar Manriquez-Sandoval",
maintainer_email = "emanriq1@jhu.edu",
url="https://github.com/FriedLabJHU/Jwalk",
description = ("A tool to calculate SASDs between crosslinked residues "),
packages=['Jwalk'],
package_dir = {'':'src'},
requires=['NumPy (>=1.6)',
"Biopython (>= 1.5)",
"wheel"
],
package_data={'': ['naccess.config.txt']},
scripts=['src/Jwalk/jwalk'],
)