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.
|
||||
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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue