From b333c103012ac628d4e9d382ab7386367dd6545c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Nov 2019 15:15:42 +0530 Subject: [PATCH] Require python >= 3.7 in setup.py --- setup.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 97e029fe38..ba9a734596 100755 --- a/setup.py +++ b/setup.py @@ -11,13 +11,10 @@ import sys, os def check_version_info(): vi = sys.version_info - if vi[0] == 2 and vi[1:3] >= (7, 9): - return - if vi.major > 2 and 'CALIBRE_PY3_PORT' in os.environ: - # PY3_TODO: Remove check for 'CALIBRE_PY3_PORT' once calibre works with python3 + if vi.major > 3 or (vi.major == 3 and vi[1:3] >= (7, 0)): return raise SystemExit( - 'calibre requires python >= 2.7.9 and < 3. Current python version: ' + '.'.join(map(str, vi[:3]))) + 'calibre requires python >= 3.7.0. Current python version: ' + '.'.join(map(str, vi[:3]))) check_version_info()