Skip to content

Commit

Permalink
Update VS2017 references and comments to match the actual VS2019 the …
Browse files Browse the repository at this point in the history
…search string uses

Signed-off-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
  • Loading branch information
spham-amzn committed Feb 26, 2024
1 parent 9dd38ff commit b755571
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package-system/python/win_x64/build_python.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit b755571

Please sign in to comment.