Add a content-addressed cache for wheels (#38)

Closes https://github.com/astral-sh/puffin/issues/4.
This commit is contained in:
Charlie Marsh 2023-10-07 10:24:52 -04:00 committed by GitHub
parent 6c31631913
commit 162952bf64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 97 additions and 28 deletions

View file

@ -54,7 +54,7 @@ pub(crate) async fn sync(src: &Path, cache: Option<&Path>) -> Result<ExitStatus>
// Install into the current environment.
let wheels = resolution.into_files().collect::<Vec<_>>();
puffin_installer::install(&wheels, &python, &client).await?;
puffin_installer::install(&wheels, &python, &client, cache).await?;
#[allow(clippy::print_stdout)]
{