From 3eef178be96c47bf632685d4d0851232a87ce242 Mon Sep 17 00:00:00 2001 From: Stuti Ravikiran Wali Date: Fri, 7 Aug 2026 17:48:54 +0530 Subject: [PATCH 1/2] Update create_wheel_wrapper.sh From 83100f48c6847ad27b13c484e00018979dda9daf Mon Sep 17 00:00:00 2001 From: Stuti Ravikiran Wali Date: Fri, 7 Aug 2026 17:49:14 +0530 Subject: [PATCH 2/2] Update post_process_wheel.py --- gha-script/post_process_wheel.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gha-script/post_process_wheel.py b/gha-script/post_process_wheel.py index df49bf98ea..0f3796d01a 100644 --- a/gha-script/post_process_wheel.py +++ b/gha-script/post_process_wheel.py @@ -579,7 +579,12 @@ def process_wheel(wheel_path, suffix): new_wheel_name = wheel_name.replace(old_version, f"{old_version}+{suffix}", 1) new_wheel_path = os.path.join(wheel_dir, new_wheel_name) - os.remove(wheel_path) + # Only remove the original when the repacked wheel has a different path + # (i.e. suffix was added). In PR builds the name is unchanged so + # wheel_path == new_wheel_path — the repacked file IS the original + # location and must not be deleted. + if new_wheel_path != wheel_path: + os.remove(wheel_path) logger.info("Processing wheel completed") return new_wheel_path except Exception as e: