Fix SCons version check.
SConstruct: Handle SCons version check error when running on SCons 0.96 and previous. --HG-- extra : convert_revision : 37595a468a9b56336c3f88a1057706f89bee9157
This commit is contained in:
parent
e60dc5195c
commit
d308055afc
1 changed files with 11 additions and 1 deletions
12
SConstruct
12
SConstruct
|
@ -64,7 +64,17 @@ import os
|
||||||
|
|
||||||
# Check for recent-enough Python and SCons versions
|
# Check for recent-enough Python and SCons versions
|
||||||
EnsurePythonVersion(2,3)
|
EnsurePythonVersion(2,3)
|
||||||
EnsureSConsVersion(0,96,91)
|
|
||||||
|
# Ironically, SCons 0.96 dies if you give EnsureSconsVersion a
|
||||||
|
# 3-element version number.
|
||||||
|
min_scons_version = (0,96,91)
|
||||||
|
try:
|
||||||
|
EnsureSConsVersion(*min_scons_version)
|
||||||
|
except:
|
||||||
|
print "Error checking current SCons version."
|
||||||
|
print "SCons", ".".join(map(str,min_scons_version)), "or greater required."
|
||||||
|
Exit(2)
|
||||||
|
|
||||||
|
|
||||||
# The absolute path to the current directory (where this file lives).
|
# The absolute path to the current directory (where this file lives).
|
||||||
ROOT = Dir('.').abspath
|
ROOT = Dir('.').abspath
|
||||||
|
|
Loading…
Reference in a new issue