-
Notifications
You must be signed in to change notification settings - Fork 86
/
setup.py
86 lines (82 loc) · 3.36 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
# class to download modis data
#
# (c) Copyright Luca Delucchi 2010-2016
# Authors: Luca Delucchi
# Email: luca dot delucchi at fmach dot it
#
##################################################################
#
# The Modis class is licensed under the terms of GNU GPL 2
# 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 2 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 implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
##################################################################
import os
import re
try:
from setuptools import setup
except:
from distutils.core import setup
import sys
HERE = os.path.abspath(os.path.dirname(__file__))
if sys.version_info.major == 3:
with open(os.path.join(HERE, 'README.rst'), encoding='utf-8') as f:
README = f.read()
with open(os.path.join(HERE, 'pymodis', '__init__.py'), encoding='utf-8') as fp:
VERSION = re.search("__version__ = '([^']+)'", fp.read()).group(1)
else:
with open(os.path.join(HERE, 'README.rst')) as f:
README = f.read()
with open(os.path.join(HERE, 'pymodis', '__init__.py')) as fp:
VERSION = re.search("__version__ = '([^']+)'", fp.read()).group(1)
install_requires = ['numpy', 'future', 'requests']
try:
# Support GDAL alternatives (eg. pygdal)
from osgeo import gdal
except ImportError:
install_requires += ['GDAL']
setup(
name='pyModis',
version=VERSION,
py_modules=['pymodis.downmodis', 'pymodis.convertmodis',
'pymodis.parsemodis', 'pymodis.optparse_required',
'pymodis.optparse_gui', 'pymodis.qualitymodis',
'pymodis.convertmodis_gdal', 'pymodis.productmodis'],
#packages = ['pymodis'],
scripts=['scripts/modis_download.py', 'scripts/modis_multiparse.py',
'scripts/modis_parse.py', 'scripts/modis_mosaic.py',
'scripts/modis_convert.py', 'scripts/modis_quality.py',
'scripts/modis_download_from_list.py', 'scripts/modis_check.py'],
author='Luca Delucchi',
author_email='luca.delucchi@fmach.it',
url='http://www.pymodis.org',
project_urls={'Source': 'https://github.com/lucadelu/pyModis/',
'Tracker': 'https://github.com/lucadelu/pyModis/issues'},
description='Python library for MODIS data',
long_description=README,
install_requires=install_requires,
extras_require={'GUI': ["wxPython", "wxPython-common"]},
license='GNU GPL 2 or later',
platforms=['Any'],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Scientific/Engineering :: GIS",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
],
)