Blame SOURCES/bz1691456-gcloud-dont-detect-python2.patch

b4b3ce
diff -uNr a/bundled/gcp/google-cloud-sdk/bin/gcloud b/bundled/gcp/google-cloud-sdk/bin/gcloud
b4b3ce
--- a/bundled/gcp/google-cloud-sdk/bin/gcloud	2019-04-04 12:01:28.838027640 +0200
b4b3ce
+++ b/bundled/gcp/google-cloud-sdk/bin/gcloud	2019-04-04 12:03:21.577089065 +0200
b4b3ce
@@ -74,24 +74,7 @@
b4b3ce
 
b4b3ce
 # if CLOUDSDK_PYTHON is empty
b4b3ce
 if [ -z "$CLOUDSDK_PYTHON" ]; then
b4b3ce
-  # if python2 exists then plain python may point to a version != 2
b4b3ce
-  if _cloudsdk_which python2 >/dev/null; then
b4b3ce
-    CLOUDSDK_PYTHON=python2
b4b3ce
-  elif _cloudsdk_which python2.7 >/dev/null; then
b4b3ce
-    # this is what some OS X versions call their built-in Python
b4b3ce
-    CLOUDSDK_PYTHON=python2.7
b4b3ce
-  elif _cloudsdk_which python >/dev/null; then
b4b3ce
-    # Use unversioned python if it exists.
b4b3ce
-    CLOUDSDK_PYTHON=python
b4b3ce
-  elif _cloudsdk_which python3 >/dev/null; then
b4b3ce
-    # We support python3, but only want to default to it if nothing else is
b4b3ce
-    # found.
b4b3ce
-    CLOUDSDK_PYTHON=python3
b4b3ce
-  else
b4b3ce
-    # This won't work because it wasn't found above, but at this point this
b4b3ce
-    # is our best guess for the error message.
b4b3ce
-    CLOUDSDK_PYTHON=python
b4b3ce
-  fi
b4b3ce
+  CLOUDSDK_PYTHON="/usr/libexec/platform-python"
b4b3ce
 fi
b4b3ce
 
b4b3ce
 # $PYTHONHOME can interfere with gcloud. Users should use