Skip to content

Commit 1922979

Browse files
authored
Merge pull request #207 from lpinner/develop
Use setuptools 'entry_points': 'console_scripts'
2 parents d2d94d9 + 9a76ad6 commit 1922979

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55

66
try:
77
from setuptools import setup
8+
setup_kwargs = {'entry_points': {'console_scripts':['landsat=landsat.landsat:__main__']}}
89
except ImportError:
910
from distutils.core import setup
11+
setup_kwargs = {'scripts': ['bin/landsat']}
12+
1013

1114
from landsat import __version__
1215

@@ -29,13 +32,13 @@ def readme():
2932
long_description=readme(),
3033
author='Development Seed',
3134
author_email='[email protected]',
32-
scripts=['bin/landsat'],
3335
url='https://github.com/developmentseed/landsat-util',
3436
packages=['landsat'],
3537
include_package_data=True,
3638
license='CCO',
3739
platforms='Posix; MacOS X; Windows',
3840
install_requires=INSTALL_REQUIRES,
3941
test_suite='nose.collector',
40-
tests_require=TEST_REQUIRES
42+
tests_require=TEST_REQUIRES,
43+
**setup_kwargs
4144
)

0 commit comments

Comments
 (0)