From bb7305a73e74cca6332e428672d9e5d1b6f91404 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 16 Mar 2020 14:44:16 +1100 Subject: Fail early if Python 3.x. --- qt/ScintillaEditPy/sepbuild.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt/ScintillaEditPy/sepbuild.py') 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