1@echo off 2rem This script adds the latest available tools to the path for the current 3rem command window. However, most builds of Python will ignore the version 4rem of the tools on PATH and use PlatformToolset instead. Ideally, both sets of 5rem tools should be the same version to avoid potential conflicts. 6rem 7rem To build Python with an earlier toolset, pass "/p:PlatformToolset=v100" (or 8rem 'v110', 'v120' or 'v140') to the build script. 9 10echo Build environments: x86, amd64, x86_amd64 11echo. 12set VSTOOLS=%VS140COMNTOOLS% 13if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS% 14if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS% 15if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS% 16call "%VSTOOLS%..\..\VC\vcvarsall.bat" %* 17