-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
error: error in setup.cfg: command 'bdist_wheel' has no such option 'azure_namespace_package' #14416
Comments
I see that this issue may be more suitable for https://github.com/Azure/azure-sdk-for-python. I copied the issue there: https://github.com/Azure/azure-sdk-for-python/issues/12606 |
Hi @kappa , which repo are you building ? Is it azure-cli ? Azure CLI has a customized |
@arrownj Did not copy anything. To reproduce (without cloning any repositories): $ pip wheel --no-binary :all: azure-cli It breaks on 5 packages that are listed in the task. |
There are new details from @lmazuel in Azure/azure-sdk-for-python#12612. |
Hi @kappa , do you mean you are building azure-cli wheel ? I can build an azure-cli wheel successfully with below commands:
I'm still not sure how to reproduce your problems. |
@arrownj Does building with "pip"work for you? Try running "pip wheel --no-binary :all: azure-cli". The main differences of building with "pip wheel" versus what you propose are:
Some of azure-cli dependencies on pypi.org (parts of azure-sdk) are very old and that's why the whole build fails. An example: https://pypi.org/project/azure-mgmt-billing/#files |
Hi @kappa , I run I'm still wondering why you need to use I will close this issue first as this is not a build scenario of azure cli. If you have other building problems, feel free to reopen or submit a new issue. Thanks |
@arrownj Trying now as well.
So, the same 5 packages are failing. I will try on 3.8 as well later and post here. @arrownj We need reproducible builds, cannot use binary pre-built packages. |
duplicate with Azure/azure-sdk-for-python#12612 |
from the error, the failed built pacakges are sdk packages
hi @arrownj why cli need build sdk wheel package, shouldn't them from pypi directly? |
Same 5 packages are failing on Fedora+Python 3.8:
|
Hi @kappa , Just as discussed in Azure/azure-sdk-for-python#12612, this is a build problem of the 5 SDK packages. Below are the status of these SDKs.
To fix this, a new version for billing/consumption/datalake-analytics/relay should be released first. Then CLI will update its depend version to the latest one. For applicationinsights, CLI will try to use 0.3.0 version in our coming release (We need to confirm with service team, as this SDK is referenced by an extension which is owned by service team). For your case, I think a workaround solution is to use wheel 0.30.0 version. Try to run |
hi @kappa pls let us know if the workaround ok. |
To recap this and other threads:
It's not obvious how to downgrade to this 2017 version of wheel from within a poetry2nix build environment for just these dependencies. Some responses say to just use the wheels (I can't find them right now). But building from source is sometimes a requirement for security and reproducibility reasons. Is building Azure CLI/SDK from source officially supported by Microsoft? Or is it just temporarily broken, but eventually going to be fixed? |
Describe the bug
I am trying to build the wheel for azure-cli and the build fails with the message
"error: error in setup.cfg: command 'bdist_wheel' has no such option 'azure_namespace_package'" in several dependant packages which I am trying to list here:
azure-mgmt-billing
azure-mgmt-applicationinsights
azure-mgmt-consumption
azure-mgmt-datalake-analytics
azure-mgmt-relay
To Reproduce
$ pip wheel --no-binary :all: azure-cli
Expected behavior
Environment summary
Building the wheel with "pip wheel" on Fedora 31 with python 3.7.7.
Additional context
I believe the issue is similar to #10232.
The text was updated successfully, but these errors were encountered: