Skip to content

Commit 61c2676

Browse files
authored
Merge pull request #166 from pytorch/adamlouly/update_protobuf
Updating protobuf to 3.20.2
2 parents c20df79 + 97a9150 commit 61c2676

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/api-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: |
1515
echo `python3 --version`
1616
cd torch_ort
17-
python3 -m pip install --upgrade protobuf==3.20.1
17+
python3 -m pip install --upgrade protobuf==3.20.2
1818
python3 -m pip install --pre onnxruntime-training --no-cache-dir -f https://download.onnxruntime.ai/onnxruntime_nightly_cpu.html
1919
python3 -m pip install torch==1.13.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
2020
python3 setup.py install --prefix=/tmp

tools/ci_build/github/linux/docker/scripts/install_protobuf.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ function GetFile {
3434
return $?
3535
}
3636

37-
GetFile https://github.com/protocolbuffers/protobuf/archive/v3.18.1.tar.gz /tmp/src/v3.18.1.tar.gz
38-
tar -xf /tmp/src/v3.18.1.tar.gz -C /tmp/src
39-
cd /tmp/src/protobuf-3.18.1
37+
GetFile https://github.com/protocolbuffers/protobuf/archive/v3.20.2.tar.gz /tmp/src/v3.20.2.tar.gz
38+
tar -xf /tmp/src/v3.20.2.tar.gz -C /tmp/src
39+
cd /tmp/src/protobuf-3.20.2
4040
cmake ./cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Relwithdebinfo
4141
make -j$(getconf _NPROCESSORS_ONLN)
4242
make install

tools/ci_build/github/linux/docker/scripts/manylinux/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pytest
44
setuptools>=41.4.0
55
wheel
66
git+http://github.com/onnx/onnx.git@237926eab41de21fb9addc4b03b751fd6a3343ec#egg=onnx
7-
protobuf==3.20.1
7+
protobuf==3.20.2
88
sympy==1.1.1
99
flake8
1010
flatbuffers

0 commit comments

Comments
 (0)