Skip to content

Commit

Permalink
Merge pull request #207 from lpinner/develop
Browse files Browse the repository at this point in the history
Use setuptools 'entry_points': 'console_scripts'
  • Loading branch information
drewbo committed Dec 20, 2016
2 parents d2d94d9 + 9a76ad6 commit 1922979
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

try:
from setuptools import setup
setup_kwargs = {'entry_points': {'console_scripts':['landsat=landsat.landsat:__main__']}}
except ImportError:
from distutils.core import setup
setup_kwargs = {'scripts': ['bin/landsat']}


from landsat import __version__

Expand All @@ -29,13 +32,13 @@ def readme():
long_description=readme(),
author='Development Seed',
author_email='info@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=INSTALL_REQUIRES,
test_suite='nose.collector',
tests_require=TEST_REQUIRES
tests_require=TEST_REQUIRES,
**setup_kwargs
)

0 comments on commit 1922979

Please sign in to comment.