summaryrefslogtreecommitdiff
path: root/build/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'build/SConstruct')
-rw-r--r--build/SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/SConstruct b/build/SConstruct
index 8819e3649..b03a81c52 100644
--- a/build/SConstruct
+++ b/build/SConstruct
@@ -45,6 +45,12 @@
import sys
import os
+# Check for recent-enough Python version
+(major, minor) = sys.version_info[:2]
+if major < 2 or (major == 2 and minor < 3):
+ print "Error: M5 requires Python 2.3 or later."
+ sys.exit(1)
+
# The absolute path to the current directory (where this file lives).
ROOT = Dir('.').abspath