Add support for --no-build-isolation (#2258)

## Summary

This PR adds support for pip's `--no-build-isolation`. When enabled,
build requirements won't be installed during PEP 517-style builds, but
the source environment _will_ be used when executing the build steps
themselves.

Closes https://github.com/astral-sh/uv/issues/1715.
This commit is contained in:
Charlie Marsh 2024-03-07 06:04:02 -08:00 committed by GitHub
parent d249574a47
commit 5ae5980c88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 244 additions and 64 deletions

View file

@ -949,6 +949,8 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
editable_wheel_dir: &Path,
) -> Result<(Dist, String, WheelFilename, Metadata21), Error> {
debug!("Building (editable) {editable}");
// Build the wheel.
let disk_filename = self
.build_context
.setup_build(