diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-08-26 08:18:12 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-08-26 08:18:12 -0400 |
commit | 50186d13204dea5d7c95596f1e9f8cff6bca8a2f (patch) | |
tree | c1d3032d88984cb5de1cc27031a4824b8528fc29 | |
parent | 03e256b0f004bfe1dbe4006878b4479f25484b74 (diff) | |
download | gem5-50186d13204dea5d7c95596f1e9f8cff6bca8a2f.tar.xz |
Add explicit check for Python version to SConstruct.
build/SConstruct:
Add explicit check for Python version.
--HG--
extra : convert_revision : 19ee788f72d63eb301e4be4c0c5729a5025c379f
-rw-r--r-- | build/SConstruct | 6 |
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 |