]> git.lyx.org Git - lyx.git/blobdiff - development/scons/SConstruct
Scons: check minor version number (>=0.96.92)
[lyx.git] / development / scons / SConstruct
index ae5d0a22ab8e1dd4d98590cd4194b23375773e7e..465f9cb9fe88b40336a422b1dd4acf7e585eb206 100644 (file)
@@ -24,8 +24,14 @@ import scons_utils as utils
 
 # scons asks for 1.5.2, lyx requires 2.3
 EnsurePythonVersion(2, 3)
-# Please use at least 0.96.91 (not 0.96.1)
+# Please use at least 0.96.92 (not 0.96.1)
 EnsureSConsVersion(0, 96)
+# also check for minor version number for scons 0.96
+from SCons import __version__
+version = map(int, __version__.split('.'))
+if version[0] == 0 and version[1] == 96 and version[2] < 92:
+    print "Scons >= 0.96.92 is required."
+    Exit(1)
 
 # determine where I am ...
 #