-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure CLI wheels includes __init__.py files that should not be there #13635
Comments
@fengzhou-msft please take a look |
@fengzhou-msft if you're unsure what this means in term of |
@lmazuel For |
That's correct. You remove those lines from your wheel using this: See also: |
Hi @lmazuel , as CLI does not support python 2 anymore. So we think we can remove the init.py in both dev and whl environment. Is that right ? |
|
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 byazure-nspkg
, and only this wheel should contain itazure/cli/__init__.py
is owned byazure-cli-nspkg
, and only this wheel should contain itThis 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 #13293
CLI packages MUST NOT contains files that are owned by any nspkg (applies to azure-cli-core, etc.)
The text was updated successfully, but these errors were encountered: