-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Description
Our homebrew formula installs az using system python without a virtual environment. This is causing issues for folks who have existing non-hombrew python installs, or use system Python for their projects.
We should isolate the CLI into its own virtual environment, the way the bash install script does. It'll also allow us to fix this logic:
azure-cli/scripts/release/homebrew/docker/formula_template.txt
Lines 58 to 66 in 971ce07
| (bin/"az").write <<~EOS | |
| #!/usr/bin/env bash | |
| export PYTHONPATH="#{ENV["PYTHONPATH"]}" | |
| if command -v python#{xy} >/dev/null 2>&1; then | |
| python#{xy} -m azure.cli \"$@\" | |
| else | |
| python3 -m azure.cli \"$@\" | |
| fi | |
| EOS |
Which is getting confused on systems where python3.x is available, but not where the azure-cli was installed. (Folks setting it up in a virtualenv by themselves.)
Reactions are currently unavailable