question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure CLI wheels includes __init__.py files that should not be there

See original GitHub issue

A 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__.py is owned by azure-nspkg, and only this wheel should contain it
  • azure/cli/__init__.py is owned by azure-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. image

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
lmazuelcommented, Jun 16, 2020

@arrownj

  • it should not be in the wheel ever, whatever py2 or py3
  • sdist is more interesting, I’m not sure it matters anymore that much if you target just py3 (keep it or leave it, same). Most of all the complex easy-install/dev install/etc. scenarios are gone. If you remove it you should be fine.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found