Skip to content

Commit

Permalink
Use python3
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Sep 22, 2021
1 parent 2c16db8 commit e03e159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
FROM golang
RUN apt-get update
RUN apt-get install build-essential curl unzip sudo -y
RUN apt-get install python-pip -y
RUN apt-get install python3-pip -y

# deps for protoc
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
Expand All @@ -16,7 +16,7 @@ RUN curl -sSL https://github.com/pseudomuto/protoc-gen-doc/releases/download/v1.
RUN go install github.com/golang/protobuf/protoc-gen-go@v1.3.2

# deps for python
RUN sudo python -m pip install grpcio grpcio-tools --ignore-installed
RUN sudo python3 -m pip install grpcio grpcio-tools --ignore-installed

# deps for js
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
Expand Down
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func buildPython() {

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

modules := findFolders()
Expand Down

0 comments on commit e03e159

Please sign in to comment.