diff options
author | Neil <nyamatongwe@gmail.com> | 2020-03-16 14:44:16 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-03-16 14:44:16 +1100 |
commit | bb7305a73e74cca6332e428672d9e5d1b6f91404 (patch) | |
tree | d6bb00bb7544e18a7b0a0347c1308a115622eba7 | |
parent | b2c60e7f07acc70adaeef02037645ce6a45ed123 (diff) | |
download | scintilla-mirror-bb7305a73e74cca6332e428672d9e5d1b6f91404.tar.gz |
Fail early if Python 3.x.
-rw-r--r-- | qt/ScintillaEditPy/sepbuild.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |