-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
75 lines (66 loc) · 2.22 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
#!/home/sw229/miniconda2/bin/env python
#version: 2.2
#author: Su Wang
#Contact: wangsu0623@gmail.com
import os,sys,io
from distutils.core import setup, Extension
from setuptools import find_packages
from os import path
if sys.version < "3.5.0":
print("Please use a Python with higher version than 3.5.0")
sys.stderr.write("CRITICAL: Python version must be 3.5 or higher!\n")
sys.exit(1)
exit(1)
this_directory = path.abspath(path.dirname(__file__))
with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
#with io.open(path.join(this_directory, 'requirements.txt')) as f:
# requires = f.read().splitlines()
#requires = [req.strip() for req in requires]
requires = [
'h5py>=2.8.0',
'numpy>=1.16.1',
'cooler==0.8.3',
'pypairix>=0.3.0',
'pairtools>=0.2.2',
'scipy>=1.0.1',
'pandas>=0.23.0',
'scikit-learn>=0.19.1',
'multiprocess>=0.70.5',
'argparse>=1.1',
'pytabix'
]
def main():
#compilemis()
if not float(sys.version[:3])>=3.5:
sys.stderr.write("CRITICAL: Python version must be greater than or equal to 3.5!\n")
sys.exit(1)
setup(name="HiNT-Package",
version="2.2.7",
description="HiNT -- HiC for copy number vairations and translocations detection ",
long_description=long_description,
long_description_content_type='text/markdown',
author='Su Wang',
author_email='wangsu0623@gmail.com',
package_dir={'HiNT' : 'HiNT'},
install_requires = requires,
setup_requires = requires,
#packages=['HiNT'],
packages=find_packages(),
package_data={'HiNT':['externalScripts/*']},
include_package_data=True,
scripts=['bin/hint'],
url="https://github.com/suwangbio/HiNT_py3",
classifiers=[
'Programming Language :: Python :: 3',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Topic :: Software Development',
],
)
if __name__ == '__main__':
main()