Skip to content

Commit

Permalink
don't copy files from .data dir of wheels if they already exist
Browse files Browse the repository at this point in the history
Fixes issue pypa#1362
  • Loading branch information
Arnon Yaari committed May 16, 2018
1 parent 94d1aba commit 11b6c22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setuptools/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def unpack(src_dir, dst_dir):
for f in filenames:
src = os.path.join(dirpath, f)
dst = os.path.join(dst_dir, subdir, f)
if os.path.exists(dst):
os.remove(dst)
os.renames(src, dst)
for n, d in reversed(list(enumerate(dirnames))):
src = os.path.join(dirpath, d)
Expand Down

0 comments on commit 11b6c22

Please sign in to comment.