You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2021/09/16 16:15:31 UTC
[pulsar] 01/04: Force Python CI to use earlier version of Protobuf
which supports Python2 (#12058)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch branch-2.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit da387c00f2c78492dfa24c0065516184d9dc741f
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Wed Sep 15 23:16:31 2021 -0700
Force Python CI to use earlier version of Protobuf which supports Python2 (#12058)
---
pulsar-client-cpp/run-unit-tests.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pulsar-client-cpp/run-unit-tests.sh b/pulsar-client-cpp/run-unit-tests.sh
index b8d6a8e..8dd8c00 100755
--- a/pulsar-client-cpp/run-unit-tests.sh
+++ b/pulsar-client-cpp/run-unit-tests.sh
@@ -64,6 +64,10 @@ if [ $RES -eq 0 ]; then
WHEEL_FILE=$(ls dist/ | grep whl)
echo "${WHEEL_FILE}"
echo "dist/${WHEEL_FILE}[all]"
+ # Protobuf 3.18 only works with Python3. Since we're still using Python2 in CI,
+ # let's pin the Python version to the previous one
+ pip install protobuf==3.17.3
+
pip install dist/${WHEEL_FILE}[all]
echo "---- Running Python unit tests"