From f4bec650eddc8874b3f7ab2f8b34bc5dfe60fd49 Mon Sep 17 00:00:00 2001 From: charlesbaynham Date: Thu, 2 Apr 2020 15:13:46 +0100 Subject: [PATCH] Only import speedcopy on Win > 7 (#3581) * system: Only import speedcopy for Windows > 7 Fixes #3259 * Allow for Win 8 Co-authored-by: Charles Baynham --- dvc/system.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dvc/system.py b/dvc/system.py index 8867edde9e..39dc67068a 100644 --- a/dvc/system.py +++ b/dvc/system.py @@ -10,7 +10,11 @@ logger = logging.getLogger(__name__) -if platform.system() == "Windows" and sys.version_info < (3, 8): +if ( + platform.system() == "Windows" + and sys.version_info < (3, 8) + and sys.getwindowsversion() >= (6, 2) +): try: import speedcopy