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

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