mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-09 20:16:21 +00:00
Add build isolation logging to build operations (#7169)
## Summary Closes https://github.com/astral-sh/uv/issues/7154.
This commit is contained in:
parent
aa3297a8d7
commit
a3e9610a54
1 changed files with 6 additions and 0 deletions
|
@ -504,6 +504,8 @@ impl SourceBuild {
|
||||||
// Setup the build environment. If build isolation is disabled, we assume the build
|
// Setup the build environment. If build isolation is disabled, we assume the build
|
||||||
// environment is already setup.
|
// environment is already setup.
|
||||||
if build_isolation.is_isolated(package_name) {
|
if build_isolation.is_isolated(package_name) {
|
||||||
|
debug!("Resolving build requirements");
|
||||||
|
|
||||||
let resolved_requirements = Self::get_resolved_requirements(
|
let resolved_requirements = Self::get_resolved_requirements(
|
||||||
build_context,
|
build_context,
|
||||||
source_build_context,
|
source_build_context,
|
||||||
|
@ -518,6 +520,8 @@ impl SourceBuild {
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
Error::RequirementsInstall("`build-system.requires` (install)", err)
|
Error::RequirementsInstall("`build-system.requires` (install)", err)
|
||||||
})?;
|
})?;
|
||||||
|
} else {
|
||||||
|
debug!("Proceeding without build isolation");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Figure out what the modified path should be
|
// Figure out what the modified path should be
|
||||||
|
@ -554,6 +558,8 @@ impl SourceBuild {
|
||||||
// environment is already setup.
|
// environment is already setup.
|
||||||
let runner = PythonRunner::new(concurrent_builds, level);
|
let runner = PythonRunner::new(concurrent_builds, level);
|
||||||
if build_isolation.is_isolated(package_name) {
|
if build_isolation.is_isolated(package_name) {
|
||||||
|
debug!("Creating PEP 517 build environment");
|
||||||
|
|
||||||
create_pep517_build_environment(
|
create_pep517_build_environment(
|
||||||
&runner,
|
&runner,
|
||||||
&source_tree,
|
&source_tree,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue