diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-05-16 14:15:19 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-05-16 14:16:20 +0300 |
commit | 9616bed9fc0c9065b452105e264efd05cdad9bcc (patch) | |
tree | 43bb46ed3202e273dd6f53c400e8951d4f353953 | |
parent | 64f2b4b3def020792a9a4d40622eb70cc674e73a (diff) | |
download | meson-9616bed9fc0c9065b452105e264efd05cdad9bcc.zip meson-9616bed9fc0c9065b452105e264efd05cdad9bcc.tar.gz meson-9616bed9fc0c9065b452105e264efd05cdad9bcc.tar.bz2 |
introduce check python version in meson.py
To ensure that people will not confused that something won't work.
Related: https://github.com/miit-pm/RWD/pull/1#issuecomment-102607931
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
-rwxr-xr-x | meson.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -144,6 +144,11 @@ itself as required.''' pickle.dump(b, open(dumpfile, 'wb')) def run(args): + if sys.version_info < (3, 4): + print('Meson works correctly only with python 3.4+.') + print('You have python %s.' % sys.version) + print('Please update your environment') + return 1 if args[-1] == 'secret-handshake': args = args[:-1] handshake = True |