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:
mkarolin
2021-06-15 18:00:02 -04:00
parent 6fd2784694
commit 952d6d7de0
+5 -1
View File
@@ -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)
}