From 8294799e14f964b221d94ea86c7557f9d14f50a9 Mon Sep 17 00:00:00 2001 From: aryasadeghi1 Date: Fri, 3 Jul 2026 17:43:32 +1000 Subject: [PATCH 1/2] Bump azdev pin to 0.2.12 for --no-build-isolation editable installs --- .azure-pipelines/templates/azdev_setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/templates/azdev_setup.yml b/.azure-pipelines/templates/azdev_setup.yml index 005c5c52f61..65a20e53a96 100644 --- a/.azure-pipelines/templates/azdev_setup.yml +++ b/.azure-pipelines/templates/azdev_setup.yml @@ -26,7 +26,7 @@ steps: # against the environment instead of an isolated PEP 517 env under # setuptools>=79. It is not on PyPI yet; switch this to # `pip install --upgrade "azdev==0.2.12"` once published to PyPI. - pip install --upgrade "git+https://github.com/Azure/azure-cli-dev-tools.git@644d296d9ca9b322b438d5ca21141b247258d0e5#egg=azdev" + pip install --upgrade "azdev==0.2.12" azdev --version if [ -z "$CLI_EXT_REPO_PATH" ]; then From 23071f7b9f2fc3850c30a6e5f675f6934168fbb6 Mon Sep 17 00:00:00 2001 From: aryasadeghi1 Date: Fri, 3 Jul 2026 18:03:06 +1000 Subject: [PATCH 2/2] Refactor azdev setup: remove outdated comments and streamline pip installation steps --- .azure-pipelines/templates/azdev_setup.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.azure-pipelines/templates/azdev_setup.yml b/.azure-pipelines/templates/azdev_setup.yml index 65a20e53a96..c9f391dba4c 100644 --- a/.azure-pipelines/templates/azdev_setup.yml +++ b/.azure-pipelines/templates/azdev_setup.yml @@ -15,17 +15,8 @@ steps: python -m venv env chmod +x env/bin/activate . env/bin/activate - # Cap setuptools<81 to match the CLI build (81 drops setup.py --dry-run, - # 82 removes pkg_resources) so `azdev setup` builds under a supported - # setuptools regardless of what the agent image ships. + python -m pip install -U pip "setuptools<81" - # Pin azdev to azure-cli-dev-tools commit 644d296 (0.2.12). This bundles: - # decouple extension metadata from wheel==0.30.0 (#549), quote paths in - # editable installs (#551), and --no-build-isolation for editable installs - # (#552) so extensions whose setup.py imports azure (e.g. confcom) build - # against the environment instead of an isolated PEP 517 env under - # setuptools>=79. It is not on PyPI yet; switch this to - # `pip install --upgrade "azdev==0.2.12"` once published to PyPI. pip install --upgrade "azdev==0.2.12" azdev --version