-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (45 loc) · 1.5 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
import os
import sys
from setuptools import find_packages, setup
PY2 = sys.version_info[0] == 2
def setup_package():
src_path = os.path.dirname(os.path.abspath(sys.argv[0]))
old_path = os.getcwd()
os.chdir(src_path)
sys.path.insert(0, src_path)
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
setup_requires = [] + pytest_runner
install_requires = [
'pytest', 'scipy>=0.17', 'numpy>=1.9', 'tabulate', 'humanfriendly',
'tqdm', 'pickle-mixin', 'pickle-blosc'
]
if PY2:
install_requires += ['futures']
tests_require = ['pytest']
metadata = dict(
name='limix_lsf',
version='1.0.8',
maintainer="Danilo Horta",
maintainer_email="horta@ebi.ac.uk",
license="MIT",
url='http://github.com/Horta/limix-lsf',
packages=find_packages(),
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
include_package_data=True,
zip_safe=True,
entry_points={'console_scripts': ['bj = limix_lsf.bj:entry_point']},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
], )
try:
setup(**metadata)
finally:
del sys.path[0]
os.chdir(old_path)
if __name__ == '__main__':
setup_package()