Skip to content

Commit 6e1b32c

Browse files
committed
Fix/use 4e6d935 commit
1 parent 13d43e3 commit 6e1b32c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pip/download.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,7 @@ def unpack_file_url(link, location, download_dir=None):
694694

695695
# If it's a url to a local directory
696696
if os.path.isdir(link_path):
697-
if os.path.isdir(location):
698-
rmtree(location)
699-
shutil.copytree(link_path, location, symlinks=True)
697+
_copy_dist_from_dir(link_path, location)
700698
if download_dir:
701699
logger.info('Link is a directory, ignoring download_dir')
702700
return

0 commit comments

Comments
 (0)