mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Reuse reporting operation in venv
(#3755)
This commit is contained in:
parent
3a75b50d5b
commit
0efc5d0cab
5 changed files with 37 additions and 42 deletions
|
@ -12,7 +12,7 @@ use itertools::Itertools;
|
|||
use rustc_hash::FxHashMap;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use distribution_types::{IndexLocations, Name, Requirement, Resolution, SourceDist};
|
||||
use distribution_types::{CachedDist, IndexLocations, Name, Requirement, Resolution, SourceDist};
|
||||
use uv_build::{SourceBuild, SourceBuildContext};
|
||||
use uv_cache::Cache;
|
||||
use uv_client::RegistryClient;
|
||||
|
@ -176,7 +176,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
&'data self,
|
||||
resolution: &'data Resolution,
|
||||
venv: &'data PythonEnvironment,
|
||||
) -> Result<()> {
|
||||
) -> Result<Vec<CachedDist>> {
|
||||
debug!(
|
||||
"Installing in {} in {}",
|
||||
resolution
|
||||
|
@ -213,7 +213,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
// Nothing to do.
|
||||
if remote.is_empty() && cached.is_empty() && reinstalls.is_empty() {
|
||||
debug!("No build requirements to install for build");
|
||||
return Ok(());
|
||||
return Ok(vec![]);
|
||||
}
|
||||
|
||||
// Resolve any registry-based requirements.
|
||||
|
@ -282,7 +282,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
.context("Failed to install build dependencies")?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
Ok(wheels)
|
||||
}
|
||||
|
||||
#[instrument(skip_all, fields(version_id = version_id, subdirectory = ?subdirectory))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue