Don't install pylint for python3 globally on Linux/MacOS.
Only install on Windows where python3 from depot_tools is used. On Linux/MacOS we leave it up to the user to install pylint on their system. Fixes brave/brave-browser#16415
This commit is contained in:
@@ -105,7 +105,11 @@ const installPylint3 = () => {
|
||||
console.error('python3 could not be found in path')
|
||||
process.exit(1)
|
||||
}
|
||||
util.run('python3', ['-m', 'pip', 'install', 'pylint'], cmd_options)
|
||||
// Windows is the only platform that uses python from depot_tools. On other
|
||||
// platforms it's up to the user to install pylint in their python3 instance.
|
||||
if (process.platform === 'win32') {
|
||||
util.run('python3', ['-m', 'pip', 'install', 'pylint'], cmd_options)
|
||||
}
|
||||
util.run('python3', ['-m', 'pylint', '--version'], cmd_options)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user