diff --git a/dvc/system.py b/dvc/system.py index c300daac57..483429cc08 100644 --- a/dvc/system.py +++ b/dvc/system.py @@ -16,15 +16,6 @@ speedcopy.patch_copyfile() except ImportError: pass -else: - import sys - - if sys.version_info < (3, 8): - try: - # Importing the module monkey-patches shutil.copyfile - import pyfastcopy # noqa: F401 - except ImportError: - pass class System(object): diff --git a/setup.py b/setup.py index 1445659499..8dea1df6db 100644 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ def run(self): "pywin32>=225; sys_platform == 'win32'", "networkx>=2.1,<2.4", "pydot>=1.2.4", - "speedcopy>=2.0.1", + "speedcopy>=2.0.1; sys_platform == 'win32'", "flatten_json>=0.1.6", "texttable>=0.5.2", ]