[Scons-dev] Remaining Buildbot errors under Windows...

Dirk Bächle tshortik at gmx.de
Wed Dec 16 14:49:55 EST 2015


Hi all,

after my last commit, the Windows Buildbot has only two remaining errors/fails, namely:

	test\SWIG\SWIG.py
	test\option-j.py

. I analysed these a little, and here are my results:

test\SWIG\SWIG.py
=================

The version number $SWIGVERSION gets wrong. Is there a "swig" installed on the Windows machine already? If yes, does it support 
"-version"?


test\option-j.py
================

Goes back to "build250" (revision 95b942cb8718, https://bitbucket.org/scons/scons/changeset/95b942cb8718/), where the compat wrapper 
for the subprocess module was removed. In this test, a fake "threading.py" is added to the working dir, such that the initialization 
of the Jobs/Worker stuff should fail when trying to "import threading" and should emit a warning that parallel processing is not 
supported on this platform.
Unfortunately, we import subprocess in a lot of places and Action.py is no exception. This import happens earlier, and now throws an 
unexpected ImportError, because the compat module isn't there anymore.
Here's the start of subprocess.py on my system (Ubuntu Linux 14.04 LTS with Python 2.7.6):


import sys
mswindows = (sys.platform == "win32")

if mswindows:
     import threading
     import msvcrt
     import _subprocess
     class STARTUPINFO:
         dwFlags = 0
         hStdInput = None
         hStdOutput = None
         hStdError = None
         wShowWindow = 0
     class pywintypes:
         error = IOError
else:
     import select
     _has_poll = hasattr(select, 'poll')
     import fcntl
     import pickle


It shows why the test doesn't fail under Linux, subprocess.py imports "threading" only under MSWindows.


Leaves us with the question what to do about those two. Comments? Volunteers?

Best regards,

Dirk


More information about the Scons-dev mailing list