- Updated README instructions and setup.py code to catch an
installation failure from not having distutils installed.
+ From Jeff Petkau:
+
+ - Fix --implicit-cache if the scanner returns an empty list.
+
From Anthony Roach:
- Add a "multi" keyword argument to Builder creation that specifies
- Added a --debug=time option to print SCons execution times.
- From Jeff Petkau:
-
- - Fix --implicit-cache if the scanner returns an empty list.
+ - Print an error message if a file can't be unlinked before being
+ built, rather than just silently terminating the build.
From Zed Shaw:
traceback.print_exception(e.args[0], e.args[1],
e.args[2])
raise
+ except:
+ sys.stderr.write("scons: *** %s\n" % sys.exc_value)
+ raise
def executed(self):
SCons.Taskmaster.Task.executed(self)
if sys.platform == 'win32':
_exe = '.exe'
+ _obj = '.obj'
else:
_exe = ''
+ _obj = '.o'
test = TestSCons.TestSCons()
test.fail_test(oldtime1 == os.path.getmtime(foo1))
test.fail_test(oldtime2 != os.path.getmtime(foo2))
+# Verify that scons prints an error message if a target can not be unlinked before
+# building it:
+test.write('f1.c', r"""
+#include <stdio.h>
+
+int main(void)
+{
+ printf("f1.c again again\n");
+ return 0;
+}
+""")
+
+os.chmod(test.workpath('.'), 0555)
+
+test.run(arguments = foo1, stderr="scons: *** [Errno 13] Permission denied: 'f1%s'\n"%_obj, status=2)
+
test.pass_test()