Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bench_runner/scripts/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ def compile_windows(
shutil.copytree(get_windows_build_dir(force_32bit), "libs", dirs_exist_ok=True)


def clear_pip_cache(venv: PathLike) -> None:
run_in_venv(venv, "pip", ["cache", "purge"])


def install_pyperformance(venv: PathLike) -> None:
run_in_venv(venv, "pip", ["install", "./pyperformance"])

Expand Down Expand Up @@ -298,6 +302,8 @@ def _main(
# right thing in the logs
subprocess.check_call([get_exe_path(cpython, flags, force_32bit), "-VV"])

clear_pip_cache(venv)

with log_group("Installing pyperformance"):
install_pyperformance(venv)

Expand Down