Skip to content

Commit

Permalink
🍱 port makefile fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Runde <[email protected]>
  • Loading branch information
joerunde committed Mar 12, 2024
1 parent 9b3435d commit a38565a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

target_path := "vllm/entrypoints/grpc/pb"

gen-protos:
# Compile protos
pip install grpcio-tools==1.60.1 mypy-protobuf==3.5.0 'types-protobuf>=3.20.4' --no-cache-dir
mkdir $(target_path) || true
pip install grpcio-tools==1.62.0 mypy-protobuf==3.5.0 'types-protobuf>=3.20.4'
mkdir -p $(target_path)
python -m grpc_tools.protoc -Iproto --python_out=$(target_path) \
--grpc_python_out=$(target_path) --mypy_out=$(target_path) proto/generation.proto
find $(target_path)/ -type f -name "*.py" -print0 -exec sed -i -e 's/^\(import.*pb2\)/from . \1/g' {} \;
touch $(target_path)/__init__.py

0 comments on commit a38565a

Please sign in to comment.