mirror of
https://github.com/Skyai-io/landsat-util.git
synced 2026-03-10 09:01:18 +00:00
Merge pull request #207 from lpinner/develop
Use setuptools 'entry_points': 'console_scripts'
This commit is contained in:
7
setup.py
7
setup.py
@@ -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__
|
||||
|
||||
@@ -29,7 +32,6 @@ setup(
|
||||
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,
|
||||
@@ -37,5 +39,6 @@ setup(
|
||||
platforms='Posix; MacOS X; Windows',
|
||||
install_requires=INSTALL_REQUIRES,
|
||||
test_suite='nose.collector',
|
||||
tests_require=TEST_REQUIRES
|
||||
tests_require=TEST_REQUIRES,
|
||||
**setup_kwargs
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user