Skip to content

Commit

Permalink
Only import speedcopy on Win > 7 (#3581)
Browse files Browse the repository at this point in the history
* system: Only import speedcopy for Windows > 7

Fixes #3259

* Allow for Win 8

Co-authored-by: Charles Baynham <[email protected]>
  • Loading branch information
charlesbaynham and charlesbaynham authored Apr 2, 2020
1 parent 8e675a9 commit f4bec65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dvc/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f4bec65

Please sign in to comment.