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 | 491936de90da48034097820f877aa3655f3cd09a (patch) | |
| tree | aa778124e7e78f778c1694e5954d08de5da03447 | |
| parent | 202e9914a903b4b4a96d6690e0dad5406fc78fa8 (diff) | |
| download | scintilla-mirror-491936de90da48034097820f877aa3655f3cd09a.tar.gz | |
Backport: Fail early if Python 3.x.
Backport of changeset 8008:e3dafff7afa5.
| -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 |
