Use cache for Python install temporary directories (#5787)

## Summary

It's fine for this to be in the cache, I think, since we don't
necessarily need to colocate it with the Python directory.

Closes https://github.com/astral-sh/uv/issues/5747.
This commit is contained in:
Charlie Marsh 2024-08-04 22:32:24 -04:00 committed by GitHub
parent 02eba290f6
commit bb6ac67df3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 4 deletions

View file

@ -129,7 +129,9 @@ impl PythonInstallation {
let client = client_builder.build();
info!("Fetching requested Python...");
let result = download.fetch(&client, installations_dir, reporter).await?;
let result = download
.fetch(&client, installations_dir, cache, reporter)
.await?;
let path = match result {
DownloadResult::AlreadyAvailable(path) => path,