This repository was archived by the owner on Jan 15, 2021. It is now read-only.
File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,20 @@ def read(fname):
13
13
# we need 'ntfsutils' in Windows
14
14
if os .name == 'nt' :
15
15
platform_deps = ['ntfsutils>=0.1.3,<0.2' ]
16
+ entry_points = {
17
+ "console_scripts" : [
18
+ "yotta=yotta:main" ,
19
+ "yt=yotta:main" ,
20
+ ],
21
+ }
22
+ scripts = []
16
23
else :
17
24
platform_deps = []
25
+ # entry points are nice, but add ~100ms to startup time with all the
26
+ # pkg_resources infrastructure, so we use scripts= instead on unix-y
27
+ # platforms:
28
+ scripts = ['bin/yotta' , 'bin/yt' ]
29
+ entry_points = {}
18
30
19
31
setup (
20
32
name = "yotta" ,
@@ -36,15 +48,8 @@ def read(fname):
36
48
"License :: OSI Approved :: Apache Software License" ,
37
49
"Environment :: Console" ,
38
50
],
39
- # entry points are nice, but add ~100ms to startup time with all the
40
- # pkg_resources infrastructure, so we use scripts= instead :(
41
- #entry_points={
42
- # "console_scripts": [
43
- # "yotta=yotta:main",
44
- # "yt=yotta:main",
45
- # ],
46
- #},
47
- scripts = ['bin/yt' , 'bin/yotta' ],
51
+ entry_points = entry_points ,
52
+ scripts = scripts ,
48
53
test_suite = 'yotta.test' ,
49
54
install_requires = [
50
55
'semantic_version>=2.3.1,<3' ,
You can’t perform that action at this time.
0 commit comments