forked from pytroll/mpop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (79 loc) · 3.47 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2015.
# 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')]),
(os.path.join('share', 'doc', NAME),
[os.path.join('doc', 'Makefile'),
os.path.join('doc', 'source', 'conf.py'),
os.path.join('doc', 'source', 'index.rst'),
os.path.join('doc', 'source', 'install.rst'),
os.path.join('doc', 'source', 'quickstart.rst'),
os.path.join('doc', 'source', 'image.rst'),
os.path.join('doc', 'source', 'pp.rst'),
os.path.join('doc', 'source', 'saturn.rst'),
os.path.join('doc', 'source', 'input.rst'),
os.path.join('doc', 'examples', 'geo_hrit.py'),
os.path.join('doc', 'examples', 'polar_aapp1b.py'),
os.path.join('doc', 'examples', 'polar_segments.py')])],
zip_safe=False,
install_requires=requires,
test_requires=["mock"],
extras_require={'xRIT': ['mipp >= 0.6.0'],
'hdf_eos': ['pyhdf'],
'viirs': ['h5py'],
'nc': ['netCDF4'],
'proj': ['pyresample'],
'pyspectral': ['pyspectral'],
'pyorbital': ['pyorbital >= v0.2.3']}
)