Avoid re-creating directories in async unzip (#1155)

This PR extends the optimizations from #1154 to other unzip paths.
This commit is contained in:
Charlie Marsh 2024-01-28 06:30:38 -08:00 committed by GitHub
parent 3d10f344f3
commit a25a1f2958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 9 deletions

View file

@ -751,6 +751,7 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
}
// Download the source distribution to a temporary file.
// TODO(charlie): Unzip as we download, as with wheels.
let span =
info_span!("download_source_dist", filename = filename, source_dist = %source_dist);
let download_dir = self.download_source_dist_url(response, filename).await?;