|
|
|
@ -15,8 +15,6 @@ |
|
|
|
|
@rem set path to python |
|
|
|
|
set PATH=C:\%1;C:\%1\scripts;%PATH% |
|
|
|
|
|
|
|
|
|
if "%1" == "Python27" goto :install_mingw64_with_msvcr90 |
|
|
|
|
if "%1" == "Python27_32bit" goto :install_mingw64_with_msvcr90 |
|
|
|
|
@rem set path to the existed mingw compiler |
|
|
|
|
set PATH=C:\msys64\mingw%2\bin;C:\tools\msys64\mingw%2\bin;%PATH% |
|
|
|
|
:end_mingw64_installation |
|
|
|
@ -69,13 +67,3 @@ goto :EOF |
|
|
|
|
:error |
|
|
|
|
popd |
|
|
|
|
exit /b 1 |
|
|
|
|
|
|
|
|
|
:install_mingw64_with_msvcr90 |
|
|
|
|
set MSYS64_DOWNLOAD_URL=https://storage.googleapis.com/grpc-build-helper/msys64.zip |
|
|
|
|
set MSYS64_PATH=C:\tools\msys64_win7 |
|
|
|
|
set PATH=%MSYS64_PATH%\mingw%2\bin;%PATH% |
|
|
|
|
@rem Skip the installation if the directory exists |
|
|
|
|
if exist "%MSYS64_PATH%" goto :end_mingw64_installation |
|
|
|
|
python -m pip install requests || goto :error |
|
|
|
|
python tools\run_tests\python_utils\download_and_unzip.py "%MSYS64_DOWNLOAD_URL%" "%MSYS64_PATH%" || goto :error |
|
|
|
|
goto :end_mingw64_installation |
|
|
|
|