mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Show build progress for path source distributions (#549)
This commit is contained in:
parent
d5abd33813
commit
4e05cd5dfd
1 changed files with 11 additions and 0 deletions
|
@ -185,6 +185,11 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
|
|||
.join(source_dist.distribution_id());
|
||||
fs::create_dir_all(&wheel_dir).await?;
|
||||
|
||||
let task = self
|
||||
.reporter
|
||||
.as_ref()
|
||||
.map(|reporter| reporter.on_build_start(source_dist));
|
||||
|
||||
// Build the wheel.
|
||||
let disk_filename = self
|
||||
.build_context
|
||||
|
@ -202,6 +207,12 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
|
|||
let path = wheel_dir.join(disk_filename);
|
||||
let metadata = read_metadata(&filename, &path)?;
|
||||
|
||||
if let Some(task) = task {
|
||||
if let Some(reporter) = self.reporter.as_ref() {
|
||||
reporter.on_build_complete(source_dist, task);
|
||||
}
|
||||
}
|
||||
|
||||
BuiltWheelMetadata {
|
||||
path,
|
||||
filename,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue