From b755571679428268334ac19c5046fdc5b4952f77 Mon Sep 17 00:00:00 2001 From: Steve Pham <82231385+spham-amzn@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:12:22 -0800 Subject: [PATCH] Update VS2017 references and comments to match the actual VS2019 the search string uses Signed-off-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com> --- package-system/python/win_x64/build_python.bat | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-system/python/win_x64/build_python.bat b/package-system/python/win_x64/build_python.bat index 7200b43f..5985c7dd 100644 --- a/package-system/python/win_x64/build_python.bat +++ b/package-system/python/win_x64/build_python.bat @@ -29,20 +29,20 @@ set vswhere_location=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer echo adding %vswhere_location% to PATH set PATH=%vswhere_location%;%PATH% -for /f "tokens=*" %%i in ('vswhere -version [16.0^,17.0^) -property installationPath') do set VS2017_LOCATION=%%i +for /f "tokens=*" %%i in ('vswhere -version [16.0^,17.0^) -property installationPath') do set VS2019_LOCATION=%%i -echo Using Visual Studio: %VS2017_LOCATION% +echo Using Visual Studio: %VS2019_LOCATION% -if NOT exist "%VS2017_LOCATION%\Common7\Tools\vsdevcmd.bat" ( +if NOT exist "%VS2019_LOCATION%\Common7\Tools\vsdevcmd.bat" ( IF NOT DEFINED VCINSTALLDIR ( - echo Unable to find visual studio 2017 and the visual studio environment has not been set up + echo Unable to find visual studio 2019 and the visual studio environment has not been set up exit /B 1 ) ELSE ( - echo Unable to find visual studio 2017 but found Visual Studio installed at %VCINSTALLDIR% + echo Unable to find visual studio 2019 but found Visual Studio installed at %VCINSTALLDIR% ) ) ELSE ( - call "%VS2017_LOCATION%\Common7\Tools\vsdevcmd.bat" + call "%VS2019_LOCATION%\Common7\Tools\vsdevcmd.bat" ) echo Clearing %tempdir% if present...