Skip to content

Commit

Permalink
Add build isolation logging to build operations (#7169)
Browse files Browse the repository at this point in the history
## Summary

Closes #7154.
  • Loading branch information
charliermarsh authored Sep 7, 2024
1 parent aa3297a commit a3e9610
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/uv-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ impl SourceBuild {
// Setup the build environment. If build isolation is disabled, we assume the build
// environment is already setup.
if build_isolation.is_isolated(package_name) {
debug!("Resolving build requirements");

let resolved_requirements = Self::get_resolved_requirements(
build_context,
source_build_context,
Expand All @@ -518,6 +520,8 @@ impl SourceBuild {
.map_err(|err| {
Error::RequirementsInstall("`build-system.requires` (install)", err)
})?;
} else {
debug!("Proceeding without build isolation");
}

// Figure out what the modified path should be
Expand Down Expand Up @@ -554,6 +558,8 @@ impl SourceBuild {
// environment is already setup.
let runner = PythonRunner::new(concurrent_builds, level);
if build_isolation.is_isolated(package_name) {
debug!("Creating PEP 517 build environment");

create_pep517_build_environment(
&runner,
&source_tree,
Expand Down

0 comments on commit a3e9610

Please sign in to comment.