diff --git a/src/test/shell/integration/python_stub_test.sh b/src/test/shell/integration/python_stub_test.sh index 1c30dbd2e3e97e..02e2a0118b913c 100755 --- a/src/test/shell/integration/python_stub_test.sh +++ b/src/test/shell/integration/python_stub_test.sh @@ -115,8 +115,11 @@ py_library( EOF touch test/lib2.py test/lib3.py - bazel build --python_version=PY2 //test:* \ - &> $TEST_log || fail "bazel build failed" + # Python 2 support dropped in Google builds + if [[ "$PRODUCT_NAME" == "bazel" ]]; then + bazel build --python_version=PY2 //test:* \ + &> $TEST_log || fail "bazel build failed" + fi bazel build --python_version=PY3 //test:* \ &> $TEST_log || fail "bazel build failed" }