Add explicit check for Python version to SConstruct.

build/SConstruct:
    Add explicit check for Python version.

--HG--
extra : convert_revision : 19ee788f72d63eb301e4be4c0c5729a5025c379f
This commit is contained in:
Steve Reinhardt 2005-08-26 08:18:12 -04:00
parent 03e256b0f0
commit 50186d1320

View file

@ -45,6 +45,12 @@
import sys import sys
import os 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). # The absolute path to the current directory (where this file lives).
ROOT = Dir('.').abspath ROOT = Dir('.').abspath