From 8d93356e9fef77a01b15926751be14404461730e Mon Sep 17 00:00:00 2001 From: Seth Kimmel Date: Tue, 3 Sep 2024 11:24:48 -0700 Subject: [PATCH] Update wheel_utils.py --- sky/backends/wheel_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sky/backends/wheel_utils.py b/sky/backends/wheel_utils.py index 44d47b52926..daa93d4850e 100644 --- a/sky/backends/wheel_utils.py +++ b/sky/backends/wheel_utils.py @@ -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