Skip to content

Commit

Permalink
Update wheel_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkimmel3 authored Sep 3, 2024
1 parent df30ac7 commit 8d93356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sky/backends/wheel_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def _build_sky_wheel() -> pathlib.Path:

wheel_dir = WHEEL_DIR / hash_of_latest_wheel
wheel_dir.mkdir(parents=True, exist_ok=True)
shutil.move(str(wheel_path), wheel_dir)
if not os.path.exists(os.path.join(wheel_dir, os.path.basename(wheel_path))):
shutil.move(str(wheel_path), wheel_dir)
return wheel_dir / wheel_path.name


Expand Down

0 comments on commit 8d93356

Please sign in to comment.