Catch incompatible waf early, ie. with a globally installed waf

This commit is contained in:
Christian Dywan 2009-01-19 01:12:43 +01:00
parent 0fbc478a8a
commit 235df3f04d

12
wscript
View file

@ -2,11 +2,21 @@
# WAF build script for midori # WAF build script for midori
# This file is licensed under the terms of the expat license, see the file EXPAT. # 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 Build
import Options import Options
import Utils import Utils
import pproc as subprocess import pproc as subprocess
import sys
import os import os
import UnitTest import UnitTest