@@ -24,7 +24,7 @@ export enum Product {
2424const ProductInstallScripts = new Map < Product , string [ ] > ( ) ;
2525ProductInstallScripts . set ( Product . autopep8 , [ '-m' , 'pip' , 'install' , 'autopep8' ] ) ;
2626ProductInstallScripts . set ( Product . flake8 , [ '-m' , 'pip' , 'install' , 'flake8' ] ) ;
27- ProductInstallScripts . set ( Product . mypy , [ '-m' , 'pip' , 'install' , 'mypy-lang ' ] ) ;
27+ ProductInstallScripts . set ( Product . mypy , [ '-m' , 'pip' , 'install' , 'mypy' ] ) ;
2828ProductInstallScripts . set ( Product . nosetest , [ '-m' , 'pip' , 'install' , 'nose' ] ) ;
2929ProductInstallScripts . set ( Product . pep8 , [ '-m' , 'pip' , 'install' , 'pep8' ] ) ;
3030ProductInstallScripts . set ( Product . pylama , [ '-m' , 'pip' , 'install' , 'pylama' ] ) ;
@@ -33,6 +33,16 @@ ProductInstallScripts.set(Product.pydocstyle, ['-m', 'pip', 'install', 'pydocsty
3333ProductInstallScripts . set ( Product . pylint , [ '-m' , 'pip' , 'install' , 'pylint' ] ) ;
3434ProductInstallScripts . set ( Product . pytest , [ '-m' , 'pip' , 'install' , '-U' , 'pytest' ] ) ;
3535ProductInstallScripts . set ( Product . yapf , [ '-m' , 'pip' , 'install' , 'yapf' ] ) ;
36+
37+ const ProductExecutableAndArgs = new Map < Product , { executable : string , args : string [ ] } > ( ) ;
38+ ProductExecutableAndArgs . set ( Product . mypy , { executable : 'python' , args :[ '-m' , 'mypy' ] } ) ;
39+ ProductExecutableAndArgs . set ( Product . nosetest , { executable : 'python' , args :[ '-m' , 'nose' ] } ) ;
40+ ProductExecutableAndArgs . set ( Product . pep8 , { executable : 'python' , args :[ '-m' , 'pep8' ] } ) ;
41+ ProductExecutableAndArgs . set ( Product . pylama , { executable : 'python' , args :[ '-m' , 'pylama' ] } ) ;
42+ ProductExecutableAndArgs . set ( Product . prospector , { executable : 'python' , args :[ '-m' , 'prospector' ] } ) ;
43+ ProductExecutableAndArgs . set ( Product . pylint , { executable : 'python' , args :[ '-m' , 'pylint' ] } ) ;
44+ ProductExecutableAndArgs . set ( Product . pytest , { executable : 'python' , args :[ '-m' , 'pytest' ] } ) ;
45+
3646switch ( os . platform ( ) ) {
3747 case 'win32' : {
3848 // Nothing
0 commit comments