Skip to content

Commit b839dec

Browse files
committed
fix: pass through python-platform to uv
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 0a1c605 commit b839dec

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

cibuildwheel/platforms/ios.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ def xcframework_slice(self) -> str:
7272
"XCframeworks include binaries for multiple ABIs; which ABI section should be used?"
7373
return "ios-arm64_x86_64-simulator" if self.is_simulator else "ios-arm64"
7474

75+
@property
76+
def python_platform(self) -> str:
77+
sim = "-simulator" if self.is_simulator else ""
78+
return f"{self.arch}-apple-ios{sim}"
79+
7580

7681
def all_python_configurations() -> list[PythonConfiguration]:
7782
# iOS builds are always cross builds; we need to install a macOS Python as
@@ -415,6 +420,8 @@ def setup_python(
415420
*pip,
416421
"install",
417422
"--upgrade",
423+
"--python-platform",
424+
python_configuration.python_platform,
418425
"build",
419426
*constraint_flags(dependency_constraint),
420427
env=env,
@@ -613,8 +620,8 @@ def build(options: Options, tmp_path: Path) -> None:
613620
*pip,
614621
"install",
615622
"--only-binary=:all:",
616-
"--platform",
617-
platform_tag,
623+
"--python-platform",
624+
config.python_platform,
618625
"--target",
619626
testbed_path / "iOSTestbed" / "app_packages",
620627
f"{test_wheel}{build_options.test_extras}",

0 commit comments

Comments
 (0)