Skip to content

Commit 815620e

Browse files
committed
Bug fix in ci/tools/merge_cuda_core_wheels.py: replace AI-generated .touch() with os.truncate()
1 parent 7c7e444 commit 815620e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ci/tools/merge_cuda_core_wheels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def merge_wheels(wheels: List[Path], output_dir: Path, show_wheel_contents: bool
143143
shutil.copytree(wheel_dir / base_dir, versioned_dir, dirs_exist_ok=True)
144144

145145
# Overwrite the __init__.py in versioned dirs to be empty
146-
(versioned_dir / "__init__.py").touch()
146+
os.truncate(versioned_dir / "__init__.py", 0)
147147

148148
print("\n=== Removing files from cuda/core/ directory ===", file=sys.stderr)
149149
items_to_keep = (

0 commit comments

Comments
 (0)