Skip to content

Commit

Permalink
BUG: Fix compare and continuous
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Aug 11, 2024
1 parent ee3b187 commit 4137a46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion asv/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,10 @@ def _install_project(self, repo, commit_hash, build_dir):
# Run pip via python -m pip, avoids shebang length limit on Linux.
# Don't run it in build directory, because it may contain Python packages
# that pip believes to be already installed.
cmd = ["in-dir={env_dir} python -mpip install {wheel_file}"]
# --force-reinstall is needed since versions may not change between asv runs (esp. for compare)
# Note(rg) :: Does an implicit upgrade, but --ignore-installed can leave stale files
# gh-1417
cmd = ["in-dir={env_dir} python -mpip install {wheel_file} --force-reinstall"]

if cmd:
commit_name = repo.get_decorated_hash(commit_hash, 8)
Expand Down

0 comments on commit 4137a46

Please sign in to comment.