diff --git a/.azure-pipelines/templates/azdev_setup.yml b/.azure-pipelines/templates/azdev_setup.yml index 005c5c52f61..c9f391dba4c 100644 --- a/.azure-pipelines/templates/azdev_setup.yml +++ b/.azure-pipelines/templates/azdev_setup.yml @@ -15,18 +15,9 @@ 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 "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