-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
95 lines (85 loc) · 3.39 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# CubiCal: a radio interferometric calibration suite
# (c) 2017 Rhodes University & Jonathan S. Kenyon
# http://github.com/ratt-ru/CubiCal
# This code is distributed under the terms of GPLv2, see LICENSE.md for details
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 SKA South Africa
#
# This file is part of CubeCal.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import cubical
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
try:
import six
except ImportError:
raise ImportError("Please install six before running install. If you're using pip 19 to install this package you should not be seeing this message.")
try:
import numpy
except ImportError:
raise ImportError("Please install numpy before running install. If you're using pip 19 to install this package you should not be seeing this message.")
# Check for readthedocs environment variable.
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
requirements = ['numpy',
'matplotlib',
'scipy']
else:
requirements = ['future',
'numpy',
'numba',
'python-casacore',
'sharedarray >= 3.2.1',
'matplotlib',
'scipy',
'astro-tigger-lsm',
'six',
'astropy>=3.0',
'psutil'
]
setup(name='cubical',
version=cubical.VERSION,
description='Fast calibration implementation exploiting complex optimisation.',
url='https://github.com/ratt-ru/CubiCal',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Astronomy"],
author='Jonathan Kenyon',
author_email='[email protected]',
license='GNU GPL v3',
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(),
python_requires=">=3.6",
install_requires=requirements,
include_package_data=True,
zip_safe=False,
scripts=['cubical/bin/print-cubical-stats',
'cubical/bin/plot-leakage-solutions',
'cubical/bin/plot-gain-solutions'],
entry_points={'console_scripts': ['gocubical = cubical.main:main']},
extras_require={
'lsm-support': ['montblanc >= 0.6.4'],
'degridder-support': ['ddfacet >= 0.6.1',
'regions < 0.5', # bug in new DS9 parser
'meqtrees-cattery >= 1.7.7']
}
)