- Add EnsurePythonVersion() and EnsureSConsVersion() functions.
+ - Fix the overly-verbose stack trace on ListBuilder build errors.
+
From sam th:
- Dynamically check for the existence of utilities with which to
raise
except UserError:
raise
+ except BuildError:
+ raise
except:
raise BuildError(self, "Exception",
sys.exc_type,
import TestCmd
import TestSCons
import string
+import sys
+
+python = sys.executable
test = TestSCons.TestSCons(match = TestCmd.match_re_dotall)
InternalError: error inside
""", status=2)
+test.write('build.py', '''
+import sys
+sys.exit(2)
+''')
+
+test.write('SConstruct', """
+env=Environment()
+Default(env.Command(['one.out', 'two.out'], ['foo.in'], action=r'%s build.py'))
+"""%python)
+
+test.run(status=2, stderr="scons: \\*\\*\\* \\[one.out\\] Error 2\n")
+
test.pass_test()