projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e256b
)
Add explicit check for Python version to SConstruct.
author
Steve Reinhardt
<stever@eecs.umich.edu>
Fri, 26 Aug 2005 12:18:12 +0000
(08:18 -0400)
committer
Steve Reinhardt
<stever@eecs.umich.edu>
Fri, 26 Aug 2005 12:18:12 +0000
(08:18 -0400)
build/SConstruct:
Add explicit check for Python version.
--HG--
extra : convert_revision :
19ee788f72d63eb301e4be4c0c5729a5025c379f
build/SConstruct
patch
|
blob
|
history
diff --git
a/build/SConstruct
b/build/SConstruct
index 8819e36492682b9a9685c411d12c45083ae6bc58..b03a81c527b3b56324f1935abd82908674df3a90 100644
(file)
--- 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