Update pip install calls in scripts to use uv. And messages to reference current executable (#13597)

This commit is contained in:
Avasam
2025-03-27 09:55:38 +01:00
committed by GitHub
parent 4fff7b7d01
commit 11929debd4
4 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -507,7 +507,7 @@ def setup_virtual_environments(distributions: dict[str, PackageDependencies], ar
print(colored(f"took {venv_elapsed_time:.2f} seconds", "blue"))
# STAGE 3: For each {virtual_environment: requirements_set} pairing,
# `pip install` the requirements set into the virtual environment
# `uv pip install` the requirements set into the virtual environment
pip_start_time = time.perf_counter()
# Limit workers to 10 at a time, since this makes network requests
+6 -1
View File
@@ -124,7 +124,12 @@ def main() -> None:
print("\nRunning pytype...")
pytype_result = subprocess.run([sys.executable, "tests/pytype_test.py", path])
else:
print(colored("\nSkipping pytype on Windows. You need to install it first: `pip install pytype`.", "yellow"))
print(
colored(
f"\nSkipping pytype on Windows. You need to install it first: `{sys.executable} -m pip install pytype` .",
"yellow",
)
)
cases_path = test_cases_path(stub if folder == "stubs" else "stdlib")
if not cases_path.exists():