aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjpakkane <jpakkane@gmail.com>2015-05-16 17:28:23 +0300
committerjpakkane <jpakkane@gmail.com>2015-05-16 17:28:23 +0300
commitabeafb720ad27ca3da9b91e0c4d4c3aa6f3a0fd5 (patch)
tree43bb46ed3202e273dd6f53c400e8951d4f353953
parent64f2b4b3def020792a9a4d40622eb70cc674e73a (diff)
parent9616bed9fc0c9065b452105e264efd05cdad9bcc (diff)
downloadmeson-abeafb720ad27ca3da9b91e0c4d4c3aa6f3a0fd5.zip
meson-abeafb720ad27ca3da9b91e0c4d4c3aa6f3a0fd5.tar.gz
meson-abeafb720ad27ca3da9b91e0c4d4c3aa6f3a0fd5.tar.bz2
Merge pull request #115 from ignatenkobrain/pyver_check
introduce check python version in meson.py
-rwxr-xr-xmeson.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.py b/meson.py
index 917840e..dc277eb 100755
--- a/meson.py
+++ b/meson.py
@@ -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