Skip to content

Commit d61bffb

Browse files
committed
fix: support --no-isolation with build[uv]
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 70913f0 commit d61bffb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cibuildwheel/linux.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def build_in_container(
282282
if not 0 <= build_options.build_verbosity < 2:
283283
msg = f"build_verbosity {build_options.build_verbosity} is not supported for build frontend. Ignoring."
284284
log.warning(msg)
285-
if use_uv:
285+
if use_uv and "--no-isolation" not in extra_flags and "-n" not in extra_flags:
286286
extra_flags += ["--installer=uv"]
287287
container.call(
288288
[

cibuildwheel/macos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def build(options: Options, tmp_path: Path) -> None:
505505
if not 0 <= build_options.build_verbosity < 2:
506506
msg = f"build_verbosity {build_options.build_verbosity} is not supported for build frontend. Ignoring."
507507
log.warning(msg)
508-
if use_uv:
508+
if use_uv and "--no-isolation" not in extra_flags and "-n" not in extra_flags:
509509
extra_flags.append("--installer=uv")
510510
call(
511511
"python",

cibuildwheel/windows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def build(options: Options, tmp_path: Path) -> None:
441441
if not 0 <= build_options.build_verbosity < 2:
442442
msg = f"build_verbosity {build_options.build_verbosity} is not supported for build frontend. Ignoring."
443443
log.warning(msg)
444-
if use_uv:
444+
if use_uv and "--no-isolation" not in extra_flags and "-n" not in extra_flags:
445445
extra_flags.append("--installer=uv")
446446
call(
447447
"python",

0 commit comments

Comments
 (0)