-
Notifications
You must be signed in to change notification settings - Fork 1.5k
{CI} Update pipeline to use Python 3.12 #8116
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
Conversation
️✔️Azure CLI Extensions Breaking Change Test
|
|
Hi @bebound, |
|
CI |
|
| #!/usr/bin/env bash | ||
| set -ev | ||
| pip install wheel==0.30.0 requests packaging | ||
| pip install wheel==0.30.0 requests packaging setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wheel 0.30.0 is not compatible with Python 3.12 as distutils was removed. Install setuptools as a workaround.
Traceback (most recent call last):
File "/mnt/vss/_work/1/s/./scripts/ci/test_index.py", line 23, in <module>
from wheel.install import WHEEL_INFO_RE
File "/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/wheel/install.py", line 17, in <module>
from .paths import get_install_paths
File "/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/wheel/paths.py", line 7, in <module>
import distutils.command.install as install
ModuleNotFoundError: No module named 'distutils'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why installing setuptools can work around it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setuptools provides a "vendored" distutils.
root@7a5d336f2f35:/# python -c "import distutils;print(distutils.__path__)"
['/usr/local/lib/python3.12/site-packages/setuptools/_distutils']
Use 3.12 in CI as Azure/azure-cli#29887 is merged