-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
executable file
·59 lines (54 loc) · 1.99 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
#!/usr/bin/env python
################################################################################
# GIPS: Geospatial Image Processing System
#
# AUTHOR: Matthew Hanson
# EMAIL: [email protected]
#
# Copyright (C) 2014 Applied Geosolutions
#
# 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 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/>
################################################################################
"""
setup for GIPS
"""
import os
from setuptools import setup, find_packages
import shutil
import glob
import traceback
import imp
__version__ = imp.load_source('gips.version', 'gips/version.py').__version__
# collect console scripts to install
console_scripts = []
for f in glob.glob('gips/scripts/*.py'):
try:
name = os.path.splitext(os.path.basename(f))[0]
if name not in ['__init__', 'core']:
script = 'gips_%s = gips.scripts.%s:main' % (name, name.lower())
console_scripts.append(script)
except:
print traceback.format_exc()
setup(
name='gips',
version=__version__,
description='Geospatial Image Processing System',
author='Matthew Hanson',
author_email='[email protected]',
packages=find_packages(),
package_data={'' : ['*.shp', '*.prj', '*.shx', '*.dbf']},
install_requires=['Py6S>=1.5.0', 'shapely', 'gippy>=0.3.0', 'python-dateutil', 'pydap'],
entry_points={'console_scripts': console_scripts},
zip_safe=False,
)