Package Details: google-cloud-cli-bundled-python3-unix 537.0.0-1

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.159193
First Submitted: 2023-03-08 09:33 (UTC)
Last Updated: 2025-09-03 17:43 (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 .. 24 25 26 27 28 29 30 31 32 33 34 Next › Last »

tengel commented on 2016-02-17 00:59 (UTC)

Thanks for the heads up - I've pushed a new 96.0.0-2 PKGBUILD with this sed in it.

rdoursenaud commented on 2016-02-16 08:46 (UTC)

Since latest update, I get the following error: Traceback (most recent call last): File "/tmp/aur-google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 8, in <module> import bootstrapping File "/tmp/aur-google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 9, in <module> import setup File "/tmp/aur-google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/setup.py", line 41, in <module> reload(google) ImportError: No module named google There's an issue opened upstream with a workaround: https://code.google.com/p/google-cloud-sdk/issues/detail?id=538 To apply it to the PKGBUILD, add this at the end of the prepare() section: cd "${srcdir}/${pkgname}" sed -i "s/'google' in sys.modules/False/" bin/bootstrapping/setup.py

tengel commented on 2016-01-17 13:57 (UTC)

Thanks, fixed up that word boundary in sed. Did a quick grep of the bin/ directory and it looks like everything's solid again.

FrozenCow commented on 2016-01-17 13:13 (UTC)

google-cloud-sdk already contains `CLOUDSDK_PYTHON=python2`. The current PKGBUILD results in `CLOUDSDK_PYTHON=python22`. I fixed this by changing the line: sed -i 's/CLOUDSDK_PYTHON=python/CLOUDSDK_PYTHON=python2/g' {} \; to: sed -i 's/CLOUDSDK_PYTHON=python\b/CLOUDSDK_PYTHON=python2/g' {} \;

vendion commented on 2015-12-17 11:52 (UTC)

@troyengel: Ah okay I wasn't aware that it checked if CLOUDSDK_PYTHON is set or not, I didn't logout and back in after installing so /etc/profile.d/google-cloud-sdk.sh was never sourced.

justin8 commented on 2015-12-17 02:08 (UTC)

The only exception to that I've encountered was OS X (not linux, but still). And the brew installed python adds it anyway. Alternatively you can export CLOUDSDK_PYTHON=python2 and then gcloud/gsutil/bq/etc will use the right pythong without modifications. but it's a bit stupid that they don't just default to python2 and fallback to python.

tengel commented on 2015-12-17 01:03 (UTC)

@tuxfusion - you've broken your python2 install. The symlink is created as part of the package: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python2#n95 $ pacman -Qo /usr/bin/python2 /usr/bin/python2 is owned by python2 2.7.11-1 The use of a python2 link is used across all distributions (I had to do something for work that confirmed this - RHEL/CentOS 5, 6, 7, Debian, Ubuntu, etc.) so it's an expected configuration to be on almost every Linux out there besides Arch. (just FYI)

tuxfusion commented on 2015-12-16 15:18 (UTC)

I have the same python problem. /etc/profile.d/google-cloud-sdk.sh points to "python2" which doesn't exist on my system or the repo. Manually exporting "python2.7" instead works if it's installed. executing the .sh or restarting the terminal won't help here, I suppose.

tengel commented on 2015-12-13 13:58 (UTC)

@vendion - did you log out and back in (the terminal or desktop, depending on your setup) after installing it? That's Google's code, if the variable CLOUDSDK_PYTHON is null or doesn't equal python2 that strange logic of theirs is triggered. The AUR package adds /etc/profile.d/google-cloud-sdk.sh which is sourced when you log in to set up the basic envvars which set that var to python2.

vendion commented on 2015-12-13 03:15 (UTC)

Links against the wrong Python: /usr/bin/gcloud: line 119: python22: command not found That should probably be python2 or python2.7