Azure CLI wheels includes __init__.py files that should not be there
See original GitHub issueA given wheel should only be responsible for one file, and only one. It means no other packages should contain this file too: if two wheels contains the same file, installing them side by side will break the uninstallation scenario.
Concrete example:
azure/__init__.pyis owned byazure-nspkg, and only this wheel should contain itazure/cli/__init__.pyis owned byazure-cli-nspkg, and only this wheel should contain it
This means the current wheel content of a package like azure-cli is wrong, since it contains both copy of these files.

To make things worse, the copies of these files use a “pkg_resource” format that is a performance killer. See also https://github.com/Azure/azure-cli/issues/13293
CLI packages MUST NOT contains files that are owned by any nspkg (applies to azure-cli-core, etc.)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Cannot deploy Python app to Azure: Wheels build breaks ...
How can I solve this issue? Here are the complete steps to reproduce the issue: Execute in command line: "func init TestFunction --python"....
Read more >python-azure-cli - AUR (en) - Arch Linux
Installed at 2020-01-10, but get the following error. Anyone familiar with it? $ az --help Traceback (most recent call last): File "/usr/lib/python3 ...
Read more >Using Python libraries with AWS Glue
AWS Glue uses PySpark to include Python files in AWS Glue ETL jobs. You will want to use --additional-python-modules to manage your dependencies...
Read more >Permission denied exception Azure CLI
Could you try deleting the az.sess file and try again? – Bhargavi Annadevara. Oct 21, 2020 at 16:36 · 2. @BhargaviAnnadevara I had...
Read more >azure-identity
Microsoft Azure Identity Library for Python. ... On a system with a default web browser, the Azure CLI will launch the browser to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

That’s correct. You remove those lines from your wheel using this: https://github.com/Azure/azure-sdk-for-python/blob/7aecf6ffa4f886df25f40cc2cd2ea451dfea7e08/sdk/storage/azure-mgmt-storage/setup.py#L78-L80
See also: https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/packaging.md
@arrownj