Update packse to pull in additional local version tests (#2462)

Precursor to #2430.
This commit is contained in:
Charlie Marsh 2024-03-14 13:13:47 -07:00 committed by GitHub
parent 2fb8df3769
commit 17732246df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 587 additions and 34 deletions

View file

@ -816,7 +816,8 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
let span =
info_span!("download_source_dist", filename = filename, source_dist = %source_dist);
let temp_dir =
tempfile::tempdir_in(self.build_context.cache().root()).map_err(Error::CacheWrite)?;
tempfile::tempdir_in(self.build_context.cache().bucket(CacheBucket::BuiltWheels))
.map_err(Error::CacheWrite)?;
let reader = response
.bytes_stream()
.map_err(|err| std::io::Error::new(std::io::ErrorKind::Other, err))
@ -896,8 +897,9 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
} else {
debug!("Unpacking for build: {source_dist}");
let temp_dir = tempfile::tempdir_in(self.build_context.cache().root())
.map_err(Error::CacheWrite)?;
let temp_dir =
tempfile::tempdir_in(self.build_context.cache().bucket(CacheBucket::BuiltWheels))
.map_err(Error::CacheWrite)?;
// Unzip the archive into the temporary directory.
let reader = fs_err::tokio::File::open(&path)