From 870fcb3857ba36986d1d44ab4ac519897f8fb264 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 7 Sep 2020 22:58:16 +1000 Subject: Cleanup: change Python version checks to include newer versions --- build_files/cmake/project_source_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_files/cmake/project_source_info.py') diff --git a/build_files/cmake/project_source_info.py b/build_files/cmake/project_source_info.py index 6649f4620c8..f8067c216fd 100644 --- a/build_files/cmake/project_source_info.py +++ b/build_files/cmake/project_source_info.py @@ -25,8 +25,8 @@ __all__ = ( import sys -if not sys.version.startswith("3"): - print("\nPython3.x needed, found %s.\nAborting!\n" % +if not sys.version_info.major < 3: + print("\nPython3.x or newer needed, found %s.\nAborting!\n" % sys.version.partition(" ")[0]) sys.exit(1) -- cgit v1.2.3