-
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 2.51.0 cannot be released to Homebrew #27047
Comments
Thank you for opening this issue, we will look into it. |
@jsntcy, It seems |
I guess this is related to changes in pip 23.1:
Another helpful reply about the error: #14416 (comment)
|
pip
fails to install azure-mgmt-consumption
2.0.0 from source code
https://github.com/Azure/azure-cli/blob/dev/doc/track_2_migration_roadmap.md keeps track of the Track 2 SDK migration progress. To verify the current status, I wrote the below script to print all Track 1 SDKs Azure CLI is still using: import os
from importlib import import_module
import azure.mgmt
azure_mgmt_dir = azure.mgmt.__path__[0]
print("""| sdk | version | pypi |
| - | - | - |""")
track_1_sdks = {}
for sdk in os.listdir(azure_mgmt_dir):
sdk_path = os.path.join(azure_mgmt_dir, sdk)
# Track 1 SDK contains version.py; Track 2 SDK contains _version.py
if os.path.isdir(sdk_path) and 'version.py' in os.listdir(sdk_path):
sdk_module_name = f'azure.mgmt.{sdk}'
sdk_module = import_module(sdk_module_name)
version = sdk_module.version.VERSION
package_name = f'azure-mgmt-{sdk}'
pypi_link = f'https://pypi.org/project/{package_name}/{version}/#files'
print(f'| {sdk_module_name} | {version} | {pypi_link} |') Result:
* Additional information Using azure-cli/src/azure-cli-core/azure/cli/core/util.py Lines 457 to 467 in b6ebd6f
The detection method Azure CLI core uses is too complex in this case: azure-cli/src/azure-cli-core/azure/cli/core/util.py Lines 668 to 674 in b6ebd6f
|
#25452 contains detailed explanation for breaking changes discovered during one of the most complex Track 2 SDK migrations - We also need to evaluate other options such as using code-gen to regenerate these modules. |
I closed the bot PR, once the issue got sorted out, feel free to open a new one. |
I tried to remove those three packages. The modified formula can be installed. But fails to run:
Run If I use
|
@chenrui333 If I install this formula with |
I see, it's caused by Homebrew/brew#15792. |
Yea
|
@branchvincent Thanks for your helpful reminder. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@bebound looks like |
|
This issue hasn't been updated in a bit - the build of |
Close as 2.52.0 is available in Homebrew: Homebrew/homebrew-core#141437 |
@bebound this can also be removed from the pinned issue list? |
Here is the output of
In 2.51.0, lots of Track 1 SDK are not compatible with latest wheel and fails to install. This package is also Track 1, but is compatible with latest wheel, so we don't migrate it. I can repro the similar error in
I have no idea why it worked before and fails now. AFAIK, latest |
@chenrui333 Are there any changes in brew that relate to my previous comment? |
I find the cause: the change in When building wheel from source code, This change in Here are some old technologies we're using:
wheel 0.30.0 Legacy PEP420
No |
Latest
pip
fails to installazure-mgmt-consumption
2.0.0 from source code https://pypi.org/project/azure-mgmt-consumption/2.0.0/#filesThis make homebrew fail to install Azure CLI (Homebrew/homebrew-core#138158):
https://github.com/Homebrew/homebrew-core/actions/runs/5722058178/job/15504679804?pr=138158
To repro locally:
The text was updated successfully, but these errors were encountered: