Wednesday, 12 December 2007

SCons: Extra warnings on Windows

The next checkpoint release of SCons will contain a change that warns users about the unreliability of -j on Windows if the Python win32 extensions are not installed.

The problem is that in a parallel build, if you create/read/modify a file in a Python action, and a command-line action is spawned, the command-line action inherits Python's open file handles and can keep them open, which may cause subsequent failures.

I followed the discussion on the mailing lists and thought it was quite cool how they solved the problem.

No comments: