diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 3ae2d204..18ccb04b 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -536,7 +536,7 @@ def build(options: Options, tmp_path: Path) -> None: # we're all done here; move it to output (overwrite existing) if abi3_wheel is None: try: - os.remove(build_options.output_dir / repaired_wheel.name) + (build_options.output_dir / repaired_wheel.name).unlink() except OSError: pass