diff --git a/dvc/system.py b/dvc/system.py index d32663b4af..a6fc77bf4a 100644 --- a/dvc/system.py +++ b/dvc/system.py @@ -1,7 +1,7 @@ import errno import logging import os -import shutil +import speedcopy from dvc.compat import fspath from dvc.exceptions import DvcException @@ -18,7 +18,7 @@ def is_unix(): @staticmethod def copy(src, dest): src, dest = fspath(src), fspath(dest) - return shutil.copyfile(src, dest) + return speedcopy.copyfile(src, dest) @staticmethod def hardlink(source, link_name): diff --git a/setup.py b/setup.py index f8c4fda597..4aaf0b7b1b 100644 --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ def run(self): "win-unicode-console>=0.5; sys_platform == 'win32'", "pywin32>=225; sys_platform == 'win32'", "networkx>=2.1,<2.4", + "speedcopy>=2", ]