Azure / Azure/azure-cli

yum install azure-cli and pip install everything else makes issues.

Open
#21,646 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Auto-Assign customer-reported feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

If you install azure-cli with yum it installs everything into a different location than all the rest of the python site libraries.

This causes several issues.

1. The first issue is that the global extensions no longer load into the env when calling az commands. This is because the global extensions as noted in the line of code below pulls from the python lib folder which is not where yum installs az. This means that any system-level extentions never get loaded in any other run if you set the AZURE_CONFIG_DIR to any custom dir on the server.

https://github.com/Azure/azure-cli/blob/645afccc25a145c7ad308ce51473f794aefa7a67/src/azure-cli-core/azure/cli/core/extension/__init__.py#L25

2. The second issue comes up when you try to fix this. To fix this I uninstalled AZ from yum and then went to install it in python. Again because of all the unneeded custom installation hoops it goes through to install with yum it totally hoses python and python no longer works. I then had to reinstall python and totally re-build my site libs on our deployment servers.

Python version 3.6.8
azclie yum 2.33.1-1

3. This also allows you to install in compatible version of azure cli.... if you have 4.0 installed in python-pip modules and then yum install az cli you then have 5.0 az installed again in this custom location....

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.