-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
61 lines (50 loc) · 1.38 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
#!/usr/bin/env python
# Indicar Landsat Geoprocessing Tools
#
#
# Author: Hex Gis
# Contributor: willemarcel
#
# License: GPLv3
from __future__ import print_function
import sys
import subprocess
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Check if gdal-config is installed
if subprocess.call(['which', 'gdal-config']):
error = """Error: gdal-config is not installed on this machine.
This installation requires gdal-config to proceed.
If you are on Mac OSX, you can installed gdal-config by running:
brew install gdal
On Ubuntu you should run:
sudo apt-get install libgdal1-dev
Exiting the setup now!"""
print(error)
sys.exit(1)
def readme():
with open("README.md") as f:
return f.read()
setup(name="indicar",
version='0.7.0',
description="indicar-tools is the software made by the Indicar Project" +
" to process Landsat imagery.",
long_description=readme(),
author="willemarcel",
author_email="wille.marcel@hexgis.com",
scripts=["bin/indicar"],
url="https://github.com/ibamacsr/indicar-tools",
packages=["indicar"],
include_package_data=True,
license="GPLv3",
platforms="Posix; MacOS X",
install_requires=[
"GDAL>=1.9.0",
"numpy==1.9.1"
],
extras_require={
'test': ['pytest'],
},
)