Skip to content

Commit e03e159

Browse files
committed
Use python3
1 parent 2c16db8 commit e03e159

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
FROM golang
77
RUN apt-get update
88
RUN apt-get install build-essential curl unzip sudo -y
9-
RUN apt-get install python-pip -y
9+
RUN apt-get install python3-pip -y
1010

1111
# deps for protoc
1212
RUN cd /tmp && curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v3.9.2/protoc-3.9.2-linux-x86_64.zip -o protoc.zip && unzip -o protoc.zip && sudo cp bin/protoc /usr/local/bin/protoc
@@ -16,7 +16,7 @@ RUN curl -sSL https://github.com/pseudomuto/protoc-gen-doc/releases/download/v1.
1616
RUN go install github.com/golang/protobuf/[email protected]
1717

1818
# deps for python
19-
RUN sudo python -m pip install grpcio grpcio-tools --ignore-installed
19+
RUN sudo python3 -m pip install grpcio grpcio-tools --ignore-installed
2020

2121
# deps for js
2222
RUN curl -sSL https://github.com/grpc/grpc-web/releases/download/1.0.6/protoc-gen-grpc-web-1.0.6-linux-x86_64 -o /tmp/protoc-gen-grpc-web

build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func buildPython() {
371371

372372
args := []string{"-m", "grpc_tools.protoc", "--python_out=./build/python-cs3apis", "-I.", "--grpc_python_out=./build/python-cs3apis"}
373373
args = append(args, files...)
374-
cmd := exec.Command("python", args...)
374+
cmd := exec.Command("python3", args...)
375375
run(cmd)
376376

377377
modules := findFolders()

0 commit comments

Comments
 (0)