Skip to content

Commit

Permalink
Change python win32 build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiyotoko committed Sep 28, 2024
1 parent 67d2d3e commit a31bf5d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions compile.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
setlocal EnableDelayedExpansion

rem Remove the 'stubs' directory if it exists, and create a new one
if exist stubs (
rd /s /q stubs
if exist api (
rd /s /q api
)
mkdir stubs
mkdir api

rem Base directory to start the search
set baseDir=src\main\proto
Expand All @@ -19,11 +19,11 @@ for /r %baseDir% %%f in (*.proto) do (
)

rem Run the grpc_tools.protoc command
python -m grpc_tools.protoc ^
--python_out=stubs ^
--grpc_python_out=stubs ^
.\venv\bin\python -m grpc_tools.protoc ^
--python_out=api ^
--grpc_python_out=api ^
--proto_path=%baseDir% ^
--mypy_out=stubs ^
--mypy_out=api ^
--experimental_allow_proto3_optional ^
!protoFiles!

Expand Down

0 comments on commit a31bf5d

Please sign in to comment.