Upgrade pylint (#2917)

depot_tools is removing pylint from its distribution so we must maintain
our own copy.
This commit is contained in:
Ryan Dahl 2019-09-11 16:47:42 -04:00 committed by GitHub
parent ad11f2ad6a
commit 82dc1b8e59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 94 additions and 86 deletions

View file

@ -3,11 +3,11 @@
# This script contains helper functions to work with the third_party subrepo.
import os
from os import path
import site
import sys
from os import path
from util import add_env_path, find_exts, make_env, rmtree, root_path, run
from tempfile import mkdtemp
from util import add_env_path, find_exts, make_env, rmtree, root_path, run
# Helper function that returns the full path to a subpath of the repo root.
@ -129,6 +129,13 @@ def run_pip():
],
cwd=third_party_path,
merge_env=pip_env)
run([
sys.executable, "-m", "pip", "install", "--upgrade", "--target",
python_packages_path, "pylint==1.5.6"
],
cwd=third_party_path,
merge_env=pip_env)
# Remove the temporary pip installation.
rmtree(temp_python_home)