Skip to content

Commit 025dffb

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

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
@@ -250,6 +250,13 @@ def cross_virtualenv(
250250
print(f"{tool!r} will be included in the cross-build environment (using {original})")
251251
(xbuild_tools_path / tool).symlink_to(original)
252252

253+
# build[uv] runs `python -m build --installer=uv`, and build resolves `uv`
254+
# from PATH. Ensure uv is available within the isolated tool path.
255+
if use_uv:
256+
uv_binary = find_uv()
257+
if uv_binary is not None:
258+
(xbuild_tools_path / "uv").symlink_to(uv_binary.resolve())
259+
253260
env["PATH"] = os.pathsep.join(
254261
[
255262
# The target python's binary directory

0 commit comments

Comments
 (0)