From 3e4a68b04d5106fea3a667091da86e2732ae15c4 Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 26 Feb 2015 19:54:58 -0500 Subject: [PATCH] new setup. set version 0.4.5 to allow updates before 0.5.0 release --- setup.py | 67 +++++++++++++++++++++----------------------------------- 1 file changed, 25 insertions(+), 42 deletions(-) diff --git a/setup.py b/setup.py index 0c70957..fc7ac3d 100644 --- a/setup.py +++ b/setup.py @@ -3,55 +3,38 @@ # Landsat Util # License: CC0 1.0 Universal -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.rst") as f: return f.read() -setup(name="landsat", - version='0.2.0', - description="A utility to search, download and process Landsat 8" + - " satellite imagery", - long_description=readme(), - author="Scisco", - author_email="alireza@developmentseed.org", - scripts=["bin/landsat"], - url="https://github.com/developmentseed/landsat-util", - packages=["landsat"], - include_package_data=True, - license="CCO", - platforms="Posix; MacOS X; Windows", - install_requires=[ - "GDAL==1.11.0", - "elasticsearch==1.1.1", - "gsutil==4.4", - "requests==2.3.0", - "python-dateutil==2.2", - "numpy", - "termcolor==1.1.0" - ], - ) +setup( + name="landsat", + version='0.4.5', + description="A utility to search, download and process Landsat 8" + + " satellite imagery", + long_description=readme(), + author="Scisco", + author_email="alireza@developmentseed.org", + scripts=["bin/landsat"], + url="https://github.com/developmentseed/landsat-util", + packages=["landsat"], + include_package_data=True, + license="CCO", + platforms="Posix; MacOS X; Windows", + install_requires=[ + "requests==2.5.3", + "python-dateutil==2.2", + "numpy==1.9.1", + "termcolor==1.1.0", + "rasterio==0.18", + "six==1.9.0", + "scikit-image==0.10.1", + "homura==0.1.0" + ], +)