third_party: install yapf with pip

This commit is contained in:
Bert Belder 2018-10-23 16:51:54 +02:00
parent 4ceb205512
commit 0dda87f962
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
4 changed files with 15 additions and 11 deletions

View file

@ -160,6 +160,14 @@ def run_pip():
cwd=third_party_path,
merge_env=pip_env)
# Get yapf.
# Install pywin32.
run([
sys.executable, "-m", "pip", "install", "--upgrade", "--target",
python_packages_path, "yapf"
],
cwd=third_party_path,
merge_env=pip_env)
# Remove the temporary pip installation.
rmtree(temp_python_home)