diff options
Diffstat (limited to 'lib/python/qmk')
-rw-r--r-- | lib/python/qmk/cli/__init__.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/__init__.py b/lib/python/qmk/cli/__init__.py index 1732287da..a5f1f4767 100644 --- a/lib/python/qmk/cli/__init__.py +++ b/lib/python/qmk/cli/__init__.py | |||
@@ -27,6 +27,24 @@ from . import new | |||
27 | from . import pyformat | 27 | from . import pyformat |
28 | from . import pytest | 28 | from . import pytest |
29 | 29 | ||
30 | if sys.version_info[0] != 3 or sys.version_info[1] < 6: | 30 | # Supported version information |
31 | cli.log.error('Your Python is too old! Please upgrade to Python 3.6 or later.') | 31 | # |
32 | # Based on the OSes we support these are the minimum python version available by default. | ||
33 | # Last update: 2021 Jan 02 | ||
34 | # | ||
35 | # Arch: 3.9 | ||
36 | # Debian: 3.7 | ||
37 | # Fedora 31: 3.7 | ||
38 | # Fedora 32: 3.8 | ||
39 | # Fedora 33: 3.9 | ||
40 | # FreeBSD: 3.7 | ||
41 | # Gentoo: 3.7 | ||
42 | # macOS: 3.9 (from homebrew) | ||
43 | # msys2: 3.8 | ||
44 | # Slackware: 3.7 | ||
45 | # solus: 3.7 | ||
46 | # void: 3.9 | ||
47 | |||
48 | if sys.version_info[0] != 3 or sys.version_info[1] < 7: | ||
49 | cli.log.error('Your Python is too old! Please upgrade to Python 3.7 or later.') | ||
32 | exit(127) | 50 | exit(127) |