rem This script adds the latest available tools to the path for the currentrem command window. However, most builds of Python will ignore the versionrem of the tools on PATH and use PlatformToolset instead. Ideally, both sets ofrem tools should be the same version to avoid potential conflicts.remrem To build Python with an earlier toolset, pass "/p:PlatformToolset=v100" (orrem 'v110', 'v120' or 'v140') to the build script.
set VSTOOLS=%VS140COMNTOOLS%if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS%if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS%if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS%call "%VSTOOLS%..\..\VC\vcvarsall.bat" %*