|
|
|
@ -21,16 +21,8 @@ pip install -rrequirements.txt |
|
|
|
|
|
|
|
|
|
set GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
|
|
|
|
|
|
|
|
|
@rem Multiple builds are running simultaneously, so to avoid distutils |
|
|
|
|
@rem file collisions, we build everything in a tmp directory |
|
|
|
|
@rem TODO(jtattermusch): it doesn't look like builds are actually running in parallel in the same dir |
|
|
|
|
mkdir -p %ARTIFACTS_OUT% |
|
|
|
|
set ARTIFACT_DIR=%cd%\%ARTIFACTS_OUT% |
|
|
|
|
set BUILD_DIR=C:\Windows\Temp\pygrpc-%3\ |
|
|
|
|
mkdir %BUILD_DIR% |
|
|
|
|
xcopy /s/e/q %cd%\* %BUILD_DIR% |
|
|
|
|
pushd %BUILD_DIR% |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@rem Set up gRPC Python tools |
|
|
|
|
python tools\distrib\python\make_grpcio_tools.py |
|
|
|
@ -49,16 +41,11 @@ pushd tools\distrib\python\grpcio_tools |
|
|
|
|
python setup.py bdist_wheel || goto :error |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xcopy /Y /I /S dist\* %ARTIFACT_DIR% || goto :error |
|
|
|
|
xcopy /Y /I /S tools\distrib\python\grpcio_tools\dist\* %ARTIFACT_DIR% || goto :error |
|
|
|
|
|
|
|
|
|
popd |
|
|
|
|
rmdir /s /q %BUILD_DIR% |
|
|
|
|
|
|
|
|
|
goto :EOF |
|
|
|
|
|
|
|
|
|
:error |
|
|
|
|
popd |
|
|
|
|
rmdir /s /q %BUILD_DIR% |
|
|
|
|
exit /b 1 |
|
|
|
|