blob: 9d4c9d1c32f7a4a345d41dfeb247e9cb1978d7be [file] [log] [blame]
Zachary Ware6b6e6872017-06-10 14:58:42 -05001@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" %*