From: Christian Dywan Date: Mon, 19 Jan 2009 00:12:43 +0000 (+0100) Subject: Catch incompatible waf early, ie. with a globally installed waf X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=235df3f04d5c1459888af0e483b2c83bb7af9e1b;p=midori Catch incompatible waf early, ie. with a globally installed waf --- 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