[Scons-users] SCons interfers with the constructor of io.TextIOWrapper when pywin32 is installed
Mats Wichmann
mats at wichmann.us
Thu Aug 23 15:29:45 EDT 2018
On 08/23/2018 11:12 AM, François Beaune wrote:
> Hi,
>
> I'm using scons v3.0.1 under Windows 10:
>
> SCons by Steven Knight et al.:
> script: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14
> 13:16:53, by bdbaddog on hpmicrodog
> engine: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14
> 13:16:53, by bdbaddog on hpmicrodog
> engine path:
> ['c:\\python36\\lib\\site-packages\\scons-3.0.1\\SCons']
> Copyright (c) 2001 - 2017 The SCons Foundation
>
> Under (and only under) Python 3.x, when the pywin32 Python module is
> installed, scons wraps a number of classes from the io module
> (io.BufferedReader, io.BufferedWriter, io.BufferedRWPair,
> io.BufferedRandom, io.TextIOWrapper) in order to run some custom code when
> they are constructed. This is done in SCons\Platform\win32.py lines 83-92.
I've run into a couple of problems with this wrapping as well. One
actually made it into an issue:
https://github.com/SCons/scons/issues/3136
which is clearly not the same, but adds to wondering about this wrapping.
More information about the Scons-users
mailing list