Skip to content

Commit e692618

Browse files
committed
fix: make sure build can access uv
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent 1ed0a7a commit e692618

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cibuildwheel/platforms/ios.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ def cross_virtualenv(
245245
print(f"{tool!r} will be included in the cross-build environment (using {original})")
246246
(xbuild_tools_path / tool).symlink_to(original)
247247

248+
# build[uv] runs `python -m build --installer=uv`, and build resolves `uv`
249+
# from PATH. Ensure uv is available within the isolated tool path.
250+
if use_uv:
251+
uv_binary = find_uv()
252+
if uv_binary is not None:
253+
(xbuild_tools_path / "uv").symlink_to(uv_binary.resolve())
254+
248255
env["PATH"] = os.pathsep.join(
249256
[
250257
# The target python's binary directory

0 commit comments

Comments
 (0)