[Scons-users] Win7 + MSVS2019 fails to create environment....

Bill Deegan bill at baddogconsulting.com
Thu Sep 16 12:11:55 EDT 2021


you'll need to do the what Joseph suggests before SCons attempts to
initialize msvc.
So

DefaultEnvironment(tools=[])
Then  whatever Environment()'s your using will also have to set
VSCMD_SKIP_SENDTELEMETRY before they initialize msvc.

Or you can just pull those code changes into your 3.1.2.
That said, if possible just move to latest SCons.


On Thu, Sep 16, 2021 at 2:47 AM Joseph C. Brill <jbrill at mindspring.com>
wrote:

> The MSVS 2019 batch file VSDevCmd.bat (called via vcvarsall.bat) is
> attempting to send telemetry information to Microsoft via powershell.
>
>
>
> As written, VSDevCmd.bat will attempt to send telemetry information via
> powershell if the environment variable VSCMD_SKIP_SENDTELEMETRY is not
> defined.
>
>
>
> This was addressed in SCons v4 by adding the powershell path and the
> VSCMD_SKIP_SENDTELEMETRY environment variable to the SCons environment.
> The VSCMD_SKIP_SENDTELEMETRY environment variable suppresses sending the
> telemetry information.  Adding powershell to the path allows the telemetry
> information to be sent via powershell.
>
>
>
> If upgrading to SCons v4 is not desired, it may be possible to get around
> the problem in v3.1.2 by appending the powershell path (e.g.,
> C:\Windows\System32\WindowsPowerShell\v1.0) to the constructed environment
> path via AppendENVPath in the SConstruct/SConscript file.
>
>
>
> A less palatable option is to “comment-out” sending the telemetry
> information directly in VsDevCmd.bat
> (MSVS2019ROOT\Common7\Tools\VsDevCmd.bat).  However, this change could be
> “lost” after a 2019 update.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20210916/73a50143/attachment.htm>


More information about the Scons-users mailing list