From 491936de90da48034097820f877aa3655f3cd09a Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 16 Mar 2020 14:44:16 +1100 Subject: Backport: Fail early if Python 3.x. Backport of changeset 8008:e3dafff7afa5. --- qt/ScintillaEditPy/sepbuild.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt/ScintillaEditPy') diff --git a/qt/ScintillaEditPy/sepbuild.py b/qt/ScintillaEditPy/sepbuild.py index 8fa9b4b26..3207e8242 100644 --- a/qt/ScintillaEditPy/sepbuild.py +++ b/qt/ScintillaEditPy/sepbuild.py @@ -8,6 +8,9 @@ import subprocess import stat import sys +# ScintillaEditPy can only be built against Python 2.x so fail if Python 3.x +assert sys.version_info < (3,0), "sepbuild.py requires Python 2.x" + sys.path.append(os.path.join("..", "ScintillaEdit")) import WidgetGen -- cgit v1.2.3