You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve UsePython to allow installation versions on-flight #13319
Currently, UsePython task just switches versions that are pre-cached on image (example).
It works for the most of the use-cases, because image always contains latest patch version for every major.minor pair.
However, some customers prefer to specify exact version of Python and would like to control it by themselves / freeze specific version. Current implementation of UsePython doesn't allow it.
Installation on-flight is pretty quick and should cover those use-cases. Also it is not a breaking change because task will try to download version only in case if it is not found locally.
The same changes were already done for GitHub Actions task setup-python.
Related PRs:
Reacted by Maxim Lobanov, Laurent Mazuel, Scott Beddall, Hugo van Kemenade, laike9m, Bernát Gábor, Łukasz Skarżyński, Brad Warren, Remy Jette, Caleb Cartwright and 38 more
This would also be really nice for self-hosted agents
For example NuGetToolInstaller@1 will "find, download, and cache a specified version of NuGet." Very easy to use. But UsePythonVersion@0 instead has a whole section in the documentation "How can I configure a self-hosted agent to use this task?" which describes a manual process for setting up a very specific folder structure inside _work/_tool, which then needs to be performed again for each new version.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Activity
mattip commentedon Aug 6, 2020
This would be very useful for trying out versions of python without waiting for deployment of a new image.
remyjette commentedon Oct 8, 2020
This would also be really nice for self-hosted agents
For example
NuGetToolInstaller@1will "find, download, and cache a specified version of NuGet." Very easy to use. ButUsePythonVersion@0instead has a whole section in the documentation "How can I configure a self-hosted agent to use this task?" which describes a manual process for setting up a very specific folder structure inside_work/_tool, which then needs to be performed again for each new version.github-actions commentedon May 27, 2021
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
hugovk commentedon May 28, 2021
Still valid. Would be nice to have this in place for the Python 3.10 release in October.
17 remaining items
github-actions commentedon Sep 1, 2023
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
hugovk commentedon Sep 1, 2023
Would be nice for confirmation for the Python 3.12 release in October 2023.
github-actions commentedon Feb 28, 2024
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
hugovk commentedon Feb 28, 2024
Would be nice for confirmation for the Python 3.13 release in October 2024.
github-actions commentedon Apr 10, 2025
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
hugovk commentedon Apr 10, 2025
Would be nice for confirmation for the Python 3.14 release in October 2025.
github-actions commentedon Oct 7, 2025
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days