fix: check for both python3 and python in exec-env #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fix enables the use of Homebrew-installed Python with this plugin.
See also 9d7ff92 for an earlier commit that adjusted
python
-->python3
.Description
Changes
bin/exec-env
to check forpython3
instead ofpython
.Motivation and Context
Not working, on macOS with Homebrew-installed Python:
➜ ~ gcloud --version
🚨 Python not found and is required for gcloud. Might I suggest https://github.com/danhper/asdf-python
➜ ~ command -v python
➜ ~
➜ ~ command -v python3
/opt/homebrew/bin/python3
An alias doesn't fix it either:
➜ ~ command -v python
alias python=python3
➜ ~ command -v python3
/opt/homebrew/bin/python3
➜ ~ gcloud help
🚨 Python not found and is required for gcloud. Might I suggest https://github.com/danhper/asdf-python
➜ ~ which python
python: aliased to python3
➜ ~ which python3
/opt/homebrew/bin/python3
After applying the change, it works:
➜ ~ gcloud --version
Google Cloud SDK 433.0.0
bq 2.0.93
core 2023.05.26
gcloud-crc32c 1.0.0
gsutil 5.24
Types of changes
Usage examples
How Has This Been Tested?
Checklist: