macos: no need to call os.remove, shutil.move overwrites on posix

This commit is contained in:
Cosimo Lupo
2018-09-08 18:41:39 +01:00
parent c9fffab6ea
commit 1b9c74aabc
+1 -3
View File
@@ -130,8 +130,6 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
test_command_prepared = prepare_command(test_command, project=abs_project_dir)
call(test_command_prepared, cwd=os.environ['HOME'], env=env, shell=True)
# we're all done here; move it to output (remove if already exists)
# we're all done here; move it to output (overwrite existing)
dst = os.path.join(output_dir, os.path.basename(delocated_wheel))
if os.path.isfile(dst):
os.remove(dst)
shutil.move(delocated_wheel, dst)