File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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
7681def 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 } " ,
You can’t perform that action at this time.
0 commit comments