11:: Set env vars that tell distutils to use the compiler that we put on path
2- SET DISTUTILS_USE_SDK = 1
3- SET MSSdk = 1
2+ set DISTUTILS_USE_SDK = 1
3+ set MSSdk = 1
44
5- SET " VS_VERSION = 17.4"
6- SET " VS_MAJOR = 17"
7- SET " VC_YEAR = 2022"
8- SET " VC_VERSION_LOWER = 17"
5+ set " VS_VERSION = 17.4"
6+ set " VS_MAJOR = 17"
7+ set " VC_YEAR = 2022"
8+ set " VC_VERSION_LOWER = 17"
99set " VC_VERSION_UPPER = 18"
1010
1111set " MSYS2_ARG_CONV_EXCL = /AI;/AL;/OUT;/out"
@@ -15,7 +15,7 @@ set "MSYS2_ENV_CONV_EXCL=CL"
1515:: http://stevedower.id.au/blog/building-for-python-3-5-part-two/ for more info
1616set " PY_VCRUNTIME_REDIST = %PREFIX% \\bin\\vcruntime143.dll"
1717
18- if NOT " %VS15INSTALLDIR% " == " " if exist " %VS15INSTALLDIR% \VC\Auxiliary\Build\vcvarsall.bat" (
18+ if not " %VS15INSTALLDIR% " == " " if exist " %VS15INSTALLDIR% \VC\Auxiliary\Build\vcvarsall.bat" (
1919 set " VSINSTALLDIR = %VS15INSTALLDIR% \"
2020 goto :vswhere
2121)
@@ -30,22 +30,22 @@ for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio
3030:vswhere
3131
3232:: Shorten PATH to avoid the `input line too long` error.
33- SET MyPath = %PATH%
33+ set MyPath = %PATH%
3434
3535setlocal EnableDelayedExpansion
3636
37- SET TempPath = " %MyPath:; =";" % "
38- SET var =
39- FOR %%a IN (%TempPath% ) DO (
40- IF EXIST %%~sa (
41- SET " var = !var! ;%%~sa "
37+ set TempPath = " %MyPath:; =";" % "
38+ set var =
39+ for %%a in (%TempPath% ) do (
40+ if exist %%~sa (
41+ set " var = !var! ;%%~sa "
4242 )
4343)
4444
4545set " TempPath = !var:~1 ! "
4646endlocal & set " PATH = %TempPath% "
4747
4848:: Shorten current directory too
49- FOR %%A IN (.) DO CD " %%~sA "
49+ for %%A in (.) do cd " %%~sA "
5050
5151:: other things added by install_activate.bat at package build time
0 commit comments