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 c2140a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asv/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,9 @@ 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), e.g. gh-1421
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 c2140a9

Please sign in to comment.