Merge pull request #1129 from dlech/patch-1
fix overwriting wheel on macos
This commit is contained in:
@@ -535,6 +535,11 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
|
|
||||||
# we're all done here; move it to output (overwrite existing)
|
# we're all done here; move it to output (overwrite existing)
|
||||||
if abi3_wheel is None:
|
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)
|
shutil.move(str(repaired_wheel), build_options.output_dir)
|
||||||
built_wheels.append(build_options.output_dir / repaired_wheel.name)
|
built_wheels.append(build_options.output_dir / repaired_wheel.name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user