From 235df3f04d5c1459888af0e483b2c83bb7af9e1b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 19 Jan 2009 01:12:43 +0100 Subject: [PATCH] Catch incompatible waf early, ie. with a globally installed waf --- wscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 0f924741..f3eb8c09 100644 --- a/wscript +++ b/wscript @@ -2,11 +2,21 @@ # WAF build script for midori # This file is licensed under the terms of the expat license, see the file EXPAT. +import sys + +# Waf version check, for global waf installs +try: + from Constants import WAFVERSION +except: + WAFVERSION='1.0.0' +if WAFVERSION[:3] != '1.5': + print 'Incompatible Waf, use 1.5' + sys.exit (1) + import Build import Options import Utils import pproc as subprocess -import sys import os import UnitTest -- 2.39.5