Skip to content

Commit f5c08a8

Browse files
authored
Merge pull request #144 from descarteslabs/fix/windows
Fix/windows
2 parents 1408a41 + bf018d1 commit f5c08a8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515

1616
from descarteslabs.scripts.parser import parser, handle
1717

18-
if __name__ == "__main__":
18+
19+
def main():
1920
handle(parser.parse_args())

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ def do_setup():
5656
kwargs['version'] = version
5757
kwargs['packages'] = find_packages('.')
5858
kwargs['package_data'] = {'descarteslabs.services': ['gd_bundle-g2-g1.crt']}
59-
kwargs['scripts'] = [
60-
'descarteslabs/scripts/descarteslabs',
61-
]
59+
kwargs['entry_points'] = {
60+
'console_scripts': [
61+
'descarteslabs = descarteslabs.scripts.__main__:main'
62+
]
63+
}
6264
kwargs['install_requires'] = [
6365
"cachetools",
6466
"six"

0 commit comments

Comments
 (0)