Skip to content

Commit 478f784

Browse files
committed
Merge pull request #2196 from msabramo/speed_up_unpack_file_url
Speed up unpack_file_url
2 parents d15cf93 + aeb43ce commit 478f784

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pip/download.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,10 @@ def unpack_file_url(link, location, download_dir=None):
632632
if os.path.isdir(link_path):
633633
if os.path.isdir(location):
634634
rmtree(location)
635-
shutil.copytree(link_path, location, symlinks=True)
635+
shutil.copytree(
636+
link_path, location, symlinks=True,
637+
ignore=shutil.ignore_patterns(
638+
'.tox', '.git', '.hg', '.bzr', '.svn'))
636639
if download_dir:
637640
logger.info('Link is a directory, ignoring download_dir')
638641
return

0 commit comments

Comments
 (0)