From 4d4daefbd2202785862ba5bfa522a51399f9b4a0 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 13 Mar 2026 11:11:25 -0400 Subject: [PATCH] fix: give uv the full python path (#2774) * fix: give uv the full python path Signed-off-by: Henry Schreiner * Fix python binary path in Linux build script I thought the dir was enough. Seems not. --------- Signed-off-by: Henry Schreiner --- cibuildwheel/platforms/linux.py | 2 +- cibuildwheel/platforms/macos.py | 2 +- cibuildwheel/platforms/windows.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cibuildwheel/platforms/linux.py b/cibuildwheel/platforms/linux.py index 818ad8f0..7b9b0c37 100644 --- a/cibuildwheel/platforms/linux.py +++ b/cibuildwheel/platforms/linux.py @@ -315,7 +315,7 @@ def build_in_container( [ "uv", "build", - "--python=python", + f"--python={python_bin / 'python'}", container_package_dir, "--wheel", f"--out-dir={built_wheel_dir}", diff --git a/cibuildwheel/platforms/macos.py b/cibuildwheel/platforms/macos.py index 137c6896..e5b4d9e3 100644 --- a/cibuildwheel/platforms/macos.py +++ b/cibuildwheel/platforms/macos.py @@ -517,7 +517,7 @@ def build(options: Options, tmp_path: Path) -> None: call( uv_path, "build", - "--python=python", + f"--python={base_python}", build_options.package_dir, "--wheel", f"--out-dir={built_wheel_dir}", diff --git a/cibuildwheel/platforms/windows.py b/cibuildwheel/platforms/windows.py index d13d925b..d28643b4 100644 --- a/cibuildwheel/platforms/windows.py +++ b/cibuildwheel/platforms/windows.py @@ -510,7 +510,7 @@ def build(options: Options, tmp_path: Path) -> None: call( uv_path, "build", - "--python=python", + f"--python={base_python}", build_options.package_dir, "--wheel", f"--out-dir={built_wheel_dir}",