• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@echo off
2rem This script adds the latest available tools to the path for the current
3rem command window. However, all builds of Python should ignore the version
4rem of the tools on PATH and use PlatformToolset instead, which should
5rem always be 'v90'.
6rem
7rem To build Python with a newer toolset, pass "/p:PlatformToolset=v100" (or
8rem 'v110', 'v120' or 'v140') to the build script.  Note that no toolset
9rem other than 'v90' is supported!
10
11echo Build environments: x86, amd64, x86_amd64
12echo.
13
14rem Set up the v90 tools first.  This is mostly needed to allow PGInstrument
15rem builds to find the PGO DLL.  Do it first so the newer MSBuild is found
16rem before the one from v90 (vcvarsall.bat prepends to PATH).
17call "%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" %*
18
19set VSTOOLS=%VS140COMNTOOLS%
20if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS%
21if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS%
22if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS%
23call "%VSTOOLS%..\..\VC\vcvarsall.bat" %*
24