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