mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Tweak tracing output for sync command (#64)
This commit is contained in:
parent
a53f697f62
commit
1c942ab8fe
1 changed files with 5 additions and 3 deletions
|
@ -40,7 +40,6 @@ pub async fn install(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Phase 1: Fetch the wheels in parallel.
|
// Phase 1: Fetch the wheels in parallel.
|
||||||
debug!("Phase 1: Fetching wheels");
|
|
||||||
let mut fetches = JoinSet::new();
|
let mut fetches = JoinSet::new();
|
||||||
let mut downloads = Vec::with_capacity(wheels.len());
|
let mut downloads = Vec::with_capacity(wheels.len());
|
||||||
for wheel in wheels {
|
for wheel in wheels {
|
||||||
|
@ -71,10 +70,14 @@ pub async fn install(
|
||||||
downloads.push(result?);
|
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()?;
|
let temp_dir = tempfile::tempdir()?;
|
||||||
|
|
||||||
// Phase 2: Unpack the wheels into the cache.
|
// Phase 2: Unpack the wheels into the cache.
|
||||||
debug!("Phase 2: Unpacking wheels");
|
|
||||||
for wheel in downloads {
|
for wheel in downloads {
|
||||||
let filename = wheel.file.filename.clone();
|
let filename = wheel.file.filename.clone();
|
||||||
let key = cache_key(&wheel.file)?;
|
let key = cache_key(&wheel.file)?;
|
||||||
|
@ -111,7 +114,6 @@ pub async fn install(
|
||||||
);
|
);
|
||||||
|
|
||||||
// Phase 3: Install each wheel.
|
// Phase 3: Install each wheel.
|
||||||
debug!("Phase 3: Installing wheels");
|
|
||||||
let location = InstallLocation::Venv {
|
let location = InstallLocation::Venv {
|
||||||
venv_base: python.venv().to_path_buf(),
|
venv_base: python.venv().to_path_buf(),
|
||||||
python_version: python.simple_version(),
|
python_version: python.simple_version(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue