Catch incompatible waf early, ie. with a globally installed waf
This commit is contained in:
parent
0fbc478a8a
commit
235df3f04d
1 changed files with 11 additions and 1 deletions
12
wscript
12
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue