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}",