File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from mypy .main import main
4
4
5
- main (None )
5
+
6
+ def console_entry () -> None :
7
+ main (None )
8
+
9
+
10
+ if __name__ == '__main__' :
11
+ main (None )
Original file line number Diff line number Diff line change @@ -94,9 +94,6 @@ def run(self):
94
94
95
95
package_dir = {'mypy' : 'mypy' }
96
96
97
- scripts = ['scripts/mypy' , 'scripts/stubgen' ]
98
- if os .name == 'nt' :
99
- scripts .append ('scripts/mypy.bat' )
100
97
101
98
# These requirements are used when installing by other means than bdist_wheel.
102
99
# E.g. "pip3 install ." or
@@ -119,7 +116,8 @@ def run(self):
119
116
package_dir = package_dir ,
120
117
py_modules = [],
121
118
packages = ['mypy' ],
122
- scripts = scripts ,
119
+ entry_points = {'console_scripts' : ['mypy=mypy.__main__:console_entry' ,
120
+ 'stubgen=mypy.stubgen:main' ]},
123
121
data_files = data_files ,
124
122
classifiers = classifiers ,
125
123
cmdclass = {'build_py' : CustomPythonBuild },
You can’t perform that action at this time.
0 commit comments