Tweak tracing output for sync command (#64)

This commit is contained in:
Charlie Marsh 2023-10-08 16:09:15 -04:00 committed by GitHub
parent a53f697f62
commit 1c942ab8fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,6 @@ pub async fn install(
}
// Phase 1: Fetch the wheels in parallel.
debug!("Phase 1: Fetching wheels");
let mut fetches = JoinSet::new();
let mut downloads = Vec::with_capacity(wheels.len());
for wheel in wheels {
@ -71,10 +70,14 @@ pub async fn install(
downloads.push(result?);
}
if !downloads.is_empty() {
let s = if downloads.len() == 1 { "" } else { "s" };
debug!("Unpacking {} wheel{}", downloads.len(), s);
}
let temp_dir = tempfile::tempdir()?;
// Phase 2: Unpack the wheels into the cache.
debug!("Phase 2: Unpacking wheels");
for wheel in downloads {
let filename = wheel.file.filename.clone();
let key = cache_key(&wheel.file)?;
@ -111,7 +114,6 @@ pub async fn install(
);
// Phase 3: Install each wheel.
debug!("Phase 3: Installing wheels");
let location = InstallLocation::Venv {
venv_base: python.venv().to_path_buf(),
python_version: python.simple_version(),