OLD | NEW |
(Empty) | |
| 1 @rem Copyright 2016, Google Inc. |
| 2 @rem All rights reserved. |
| 3 @rem |
| 4 @rem Redistribution and use in source and binary forms, with or without |
| 5 @rem modification, are permitted provided that the following conditions are |
| 6 @rem met: |
| 7 @rem |
| 8 @rem * Redistributions of source code must retain the above copyright |
| 9 @rem notice, this list of conditions and the following disclaimer. |
| 10 @rem * Redistributions in binary form must reproduce the above |
| 11 @rem copyright notice, this list of conditions and the following disclaimer |
| 12 @rem in the documentation and/or other materials provided with the |
| 13 @rem distribution. |
| 14 @rem * Neither the name of Google Inc. nor the names of its |
| 15 @rem contributors may be used to endorse or promote products derived from |
| 16 @rem this software without specific prior written permission. |
| 17 @rem |
| 18 @rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 @rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 @rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 @rem A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 @rem OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 @rem SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 @rem LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 @rem DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 @rem THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 @rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 @rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 |
| 30 |
| 31 set NUGET=C:\nuget\nuget.exe |
| 32 %NUGET% restore vsprojects\grpc.sln || goto :error |
| 33 |
| 34 |
| 35 @call vsprojects\build_vs2013.bat vsprojects\grpc.sln /t:grpc_dll /p:Configurati
on=Release /p:PlatformToolset=v120 /p:Platform=Win32 || goto :error |
| 36 @call vsprojects\build_vs2013.bat vsprojects\grpc.sln /t:grpc_dll /p:Configurati
on=Release /p:PlatformToolset=v120 /p:Platform=x64 || goto :error |
| 37 |
| 38 mkdir src\python\grpcio\grpc\_cython\_windows |
| 39 |
| 40 copy /Y vsprojects\Release\grpc_dll.dll src\python\grpcio\grpc\_cython\_windows\
grpc_c.32.python || goto :error |
| 41 copy /Y vsprojects\x64\Release\grpc_dll.dll src\python\grpcio\grpc\_cython\_wind
ows\grpc_c.64.python || goto :error |
| 42 |
| 43 |
| 44 set PATH=C:\%1;C:\%1\scripts;%PATH% |
| 45 |
| 46 pip install --upgrade six |
| 47 pip install --upgrade setuptools |
| 48 pip install -rrequirements.txt |
| 49 |
| 50 set GRPC_PYTHON_USE_CUSTOM_BDIST=0 |
| 51 set GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
| 52 |
| 53 python setup.py bdist_wheel |
| 54 |
| 55 mkdir artifacts |
| 56 xcopy /Y /I /S dist\* artifacts\ || goto :error |
| 57 |
| 58 goto :EOF |
| 59 |
| 60 :error |
| 61 exit /b 1 |
OLD | NEW |