File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ def build_in_container(
282
282
if not 0 <= build_options .build_verbosity < 2 :
283
283
msg = f"build_verbosity { build_options .build_verbosity } is not supported for build frontend. Ignoring."
284
284
log .warning (msg )
285
- if use_uv :
285
+ if use_uv and "--no-isolation" not in extra_flags and "-n" not in extra_flags :
286
286
extra_flags += ["--installer=uv" ]
287
287
container .call (
288
288
[
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ def build(options: Options, tmp_path: Path) -> None:
505
505
if not 0 <= build_options .build_verbosity < 2 :
506
506
msg = f"build_verbosity { build_options .build_verbosity } is not supported for build frontend. Ignoring."
507
507
log .warning (msg )
508
- if use_uv :
508
+ if use_uv and "--no-isolation" not in extra_flags and "-n" not in extra_flags :
509
509
extra_flags .append ("--installer=uv" )
510
510
call (
511
511
"python" ,
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ def build(options: Options, tmp_path: Path) -> None:
441
441
if not 0 <= build_options .build_verbosity < 2 :
442
442
msg = f"build_verbosity { build_options .build_verbosity } is not supported for build frontend. Ignoring."
443
443
log .warning (msg )
444
- if use_uv :
444
+ if use_uv and "--no-isolation" not in extra_flags and "-n" not in extra_flags :
445
445
extra_flags .append ("--installer=uv" )
446
446
call (
447
447
"python" ,
Original file line number Diff line number Diff line change @@ -657,6 +657,12 @@ optional `args` option.
657
657
will change the default to [ build] [ ] , in line with the PyPA's recommendation.
658
658
If you want to try ` build ` before this, you can use this option.
659
659
660
+ !!! warning
661
+ If you are using ` build[uv] ` and are passing ` --no-isolation ` or ` -n ` , we
662
+ will detect this and avoid passing ` --installer=uv ` to build, but still
663
+ install all packages with uv. We do not currently detect combined short
664
+ options, like ` -xn ` !
665
+
660
666
[ pip ] : https://pip.pypa.io/en/stable/cli/pip_wheel/
661
667
[ build ] : https://github.com/pypa/build/
662
668
[ uv ] : https://github.com/astral-sh/uv
You can’t perform that action at this time.
0 commit comments