From e515c5b3e0cb848fc7d3b650e89bc0f0d80961a9 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 8 Oct 2020 14:20:03 +0100 Subject: [PATCH] setup.py: Check we're running under Python 3.7.x --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 765f409a..12953b0f 100755 --- a/setup.py +++ b/setup.py @@ -21,6 +21,8 @@ import semantic_version from config import appname as APPNAME, applongname as APPLONGNAME, appcmdname as APPCMDNAME, appversion as VERSION, copyright as COPYRIGHT from config import update_feed, update_interval +if sys.version_info[0:2] != (3, 7): + raise AssertionError(f'Unexpected python version {sys.version}') if sys.platform=='win32': assert platform.architecture()[0]=='32bit', 'Assumes a Python built for 32bit'