gcloud SDK checks for the existence of two variables:
CLOUDSDK_PYTHON_SITEPACKAGES
VIRTUAL_ENV
If none of these variable are defined, then the sdk adds "-S" to python interpreter so that the 'sites' module is disabled (which apparently speeds things up). Otherwise, "-S" is not used.
In the maven plugin, though, we were adding "-S" in any case. This pull request includes a change to check for the two environment variables.
gcloud SDK checks for the existence of two variables: CLOUDSDK_PYTHON_SITEPACKAGES VIRTUAL_ENV
If none of these variable are defined, then the sdk adds "-S" to python interpreter so that the 'sites' module is disabled (which apparently speeds things up). Otherwise, "-S" is not used.
In the maven plugin, though, we were adding "-S" in any case. This pull request includes a change to check for the two environment variables.