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 <[email protected]>
This commit is contained in:
charlesbaynham
2020-04-02 17:13:46 +03:00
committed by GitHub
co-authored by Charles Baynham
parent 8e675a9d42
commit f4bec650ed
+5 -1
View File
@@ -10,7 +10,11 @@ from dvc.exceptions import DvcException
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