Skip to content

Commit

Permalink
Merge pull request #1129 from dlech/patch-1
Browse files Browse the repository at this point in the history
fix overwriting wheel on macos
  • Loading branch information
joerick authored Jun 17, 2022
2 parents f1c2d6c + 9f4303b commit c022fa3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,11 @@ 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:
(build_options.output_dir / repaired_wheel.name).unlink()
except FileNotFoundError:
pass

shutil.move(str(repaired_wheel), build_options.output_dir)
built_wheels.append(build_options.output_dir / repaired_wheel.name)

Expand Down

0 comments on commit c022fa3

Please sign in to comment.