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 15, 2018
1 parent e49413f commit e3604cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +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)
os.renames(src, dst)
if not os.path.exists(dst):
os.renames(src, dst)
for n, d in reversed(list(enumerate(dirnames))):
src = os.path.join(dirpath, d)
dst = os.path.join(dst_dir, subdir, d)
Expand Down

0 comments on commit e3604cd

Please sign in to comment.