Performance regression with latest `setuptools`
Open
act-platform-engineering-squad
Azure CLI Team
Core
feature-request
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
It seems with `setuptools` 62.6.0 installed, `disutils` imports `setuptools` and `pkg_resources`. This causes some performance regression:
```
& "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -m pip list
setuptools 62.6.0
& "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -X importtime -m azure.cli version 2>perf.log; python -m tuna .\perf.log
```

_Originally posted by @jiasli in https://github.com/Azure/azure-cli/issues/7447#issuecomment-1181600870_
Contributor guide
Assessment
This issue has not been assessed yet.