Package Details: google-cloud-cli-bundled-python3-unix 535.0.0-2

Git Clone URL: https://aur.archlinux.org/google-cloud-cli.git (read-only, click to copy)
Package Base: google-cloud-cli
Description: gcloud Bundled Python 3.12
Upstream URL: https://cloud.google.com/cli/
Keywords: cloud gcloud gcp google sdk
Licenses: Apache-2.0
Submitter: PolarianDev
Maintainer: jvybihal
Last Packager: jvybihal
Votes: 191
Popularity: 0.195103
First Submitted: 2023-03-08 09:33 (UTC)
Last Updated: 2025-08-22 11:02 (UTC)

Pinned Comments

jvybihal commented on 2025-06-30 06:37 (UTC)

I did a split of the package to 3 packages: google-cloud-cli, google-cloud-cli-bq, google-cloud-cli-gsutil. There is also package containing the bundled python for those who want it or as a dependency to the gsutil (current version 5.24 does not work with python 3.13 out-of-the-box, although 5.25 which is already available on github should). I am also testing to include other "components".

If there will be interest, it's also possible to split the manpages to another package. So for those who don't want them, the install time can get faster and size significantly smaller.

I have tried not to break anyones installation, so please try to install the 3 mentioned packages and it should work the same as before.

You don't need bundled python for the gcloud to work, and I would advice to use gsutil only if yo really have to. The prefered way is to use gcloud storage anyway.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 34 Next › Last »

jvybihal commented on 2025-06-29 12:49 (UTC)

@artafinde the gcloud is not the main problem. It worked with 3.13 fine for a long time. gsutil on the other hand still does not. I just tested:

$ gsutil version
Error: gsutil requires Python version 3.8-3.12, but a different version is installed.
You are currently running Python 3.13
Follow the steps below to resolve this issue:
    1. Switch to Python 3.8-3.12 using your Python version manager or install an appropriate version.
    2. If you are unsure how to manage Python versions, visit [https://cloud.google.com/storage/docs/gsutil_install#specifications] for detailed instructions.

from the docs: //gsutil versions 5.35 or later require Python 3.9 to 3.13, which you can obtain by using your Python version manager or by installing an appropriate version.//

gcloud component is still gsutil 5.34, so hopefully there will be version bump soon. I already have PKGBUILD without the bundled python staged.

artafinde commented on 2025-06-27 07:10 (UTC) (edited on 2025-06-27 07:11 (UTC) by artafinde)

According to docs the gcloud now should support 3.13, right?

ScottE commented on 2025-06-09 16:21 (UTC)

Great to see the install time drop from many minutes to just a few seconds with the debug flag change. Thank you!

jvybihal commented on 2025-06-09 06:47 (UTC)

I was not aware, that archlinux enabled debug option as default. I have !debug in my makepkg.conf for ages and it seems pretty reasonable to me not to want to build debug packages as default. Seems to be discussed here. Thanks for the suggestion @baltazar, I have added it to PKGBUILD as it perfectly reasonable.

baltazar commented on 2025-06-07 10:27 (UTC)

Hi! I suggest adding !debug to the options array, as this option is what's slowing down this build unnecessarily. (makepkg looks for source files to copy for several minutes but it doesn't even find any)

svalee commented on 2025-05-27 01:41 (UTC)

/etc/profile.d/google-cloud-cli.sh seems to be right

export CLOUDSDK_ROOT_DIR=/opt/google-cloud-cli
export GOOGLE_CLOUD_SDK_HOME=$CLOUDSDK_ROOT_DIR

#  CLOUDSDK_ROOT_DIR             # installation root dir
#  CLOUDSDK_PYTHON               # python interpreter path
#  CLOUDSDK_GSUTIL_PYTHON        # python interpreter path for gsutil
#  CLOUDSDK_PYTHON_ARGS          # python interpreter arguments
#  CLOUDSDK_PYTHON_SITEPACKAGES  # use python site packages
#  CLOUDSDK_BQ_PYTHON            # python interpreter for bq
#  CLOUDSDK_ENCODING             # python io encoding for gcloud
export CLOUDSDK_PYTHON=/opt/google-cloud-cli/platform/bundledpythonunix/bin/python3
export CLOUDSDK_GSUTIL_PYTHON=/opt/google-cloud-cli/platform/bundledpythonunix/bin/python3
export CLOUDSDK_BQ_PYTHON=/opt/google-cloud-cli/platform/bundledpythonunix/bin/python3

but the envs are wrong, I'll have a look further on my side, thanks

printenv | grep CLOUDSDK
CLOUDSDK_PYTHON_ARGS=-S -W ignore
CLOUDSDK_ROOT_DIR=/opt/google-cloud-cli
CLOUDSDK_PYTHON=/usr/bin/python

jvybihal commented on 2025-05-26 05:07 (UTC)

@svalee: verify your profile file /etc/profile.d/google-cloud-cli.sh or any custom change in your shell environment.

I you want to use bundled python, it should look similar to this:

$ printenv | grep CLOUDSDK
CLOUDSDK_ROOT_DIR=/opt/google-cloud-cli
CLOUDSDK_PYTHON=/opt/google-cloud-cli/platform/bundledpythonunix/bin/python3
CLOUDSDK_PYTHON_SITEPACKAGES=1
CLOUDSDK_GSUTIL_PYTHON=/opt/google-cloud-cli/platform/bundledpythonunix/bin/python3
CLOUDSDK_BQ_PYTHON=/opt/google-cloud-cli/platform/bundledpythonunix/bin/python3

$ gsutil version
gsutil version: 5.34

svalee commented on 2025-05-26 04:25 (UTC) (edited on 2025-05-26 04:26 (UTC) by svalee)

I did a clean build but still having a python3.8 issues using gsutil. Am I doing something wrong?

==> Binaries are now linked to /usr/bin/, no need to adjust PATH anymore
==> NOTE: Bundled Python 3.12 is currently enforced by adjusted profile file.
==> gcloud is not (yet) fully compatible with python >=3.13
     If you want to use another python version, switch _force_budled_python
     in PKGBUILD and/or adjust /etc/profile.d/google-cloud-cli.sh accordingly.
Optional dependencies for google-cloud-cli
    python-crcmod: [gsutil] verify the integrity of GCS object contents
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
gsutil -h
Error: gsutil requires Python version 3.8-3.12, but a different version is installed.
You are currently running Python 3.13
Follow the steps below to resolve this issue:
        1. Switch to Python 3.8-3.12 using your Python version manager or install an appropriate version.
        2. If you are unsure how to manage Python versions, visit [https://cloud.google.com/storage/docs/gsutil_install#specifications] for detailed instructions.

tobbik commented on 2025-05-08 23:01 (UTC)

No problem @jvybihal. I currently daily driving a Thinkpad x13s with archlinux and using gcloud in my job. I'll let you know if stuff fails.

jvybihal commented on 2025-05-07 08:55 (UTC)

Thanks @tobbik, I have added your changes. I do not have aarch64 myself, so I was not inclined to add that and test it. But if there is a demand I see no reason to avoid it.