-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
82 lines (67 loc) · 2.72 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2016.
# SMHI,
# Folkborgsvägen 1,
# Norrköping,
# Sweden
# Author(s):
# Martin Raspaud <[email protected]>
# Adam Dybbroe <[email protected]>
# This file is part of mpop.
# mpop 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.
# mpop 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 mpop. If not, see <http://www.gnu.org/licenses/>.
"""Setup file for mpop.
"""
import os.path
from setuptools import setup
import imp
version = imp.load_source('mpop.version', 'mpop/version.py')
BASE_PATH = os.path.sep.join(os.path.dirname(
os.path.realpath(__file__)).split(os.path.sep))
requires = ['numpy >=1.4.1', 'pyresample']
try:
from PIL import Image
except ImportError:
requires.append("pillow")
NAME = 'mpop'
setup(name=NAME,
version=version.__version__,
description='Meteorological post processing package',
author='Martin Raspaud',
author_email='[email protected]',
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 " +
"or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"],
url="https://github.com/mraspaud/mpop",
test_suite='mpop.tests.suite',
packages=['mpop', 'mpop.satellites', 'mpop.instruments', 'mpop.satin',
'mpop.satout', 'mpop.saturn', 'mpop.imageo',
'mpop.imageo.formats'],
data_files=[(os.path.join('etc', 'pytroll'),
[os.path.join('etc', 'geo_image.cfg'),
os.path.join('etc', 'eps_avhrrl1b_6.5.xml')])],
zip_safe=False,
install_requires=requires,
tests_require=["mock", 'pyorbital >= v0.2.3'],
extras_require={'xRIT': ['mipp >= 0.6.0'],
'hdf_eos': ['pyhdf'],
'viirs': ['h5py'],
'nc': ['netCDF4'],
'proj': ['pyresample'],
'pyspectral': ['pyspectral'],
'pyorbital': ['pyorbital >= v0.2.3'],
'gac_lac': ['pygac']}
)