Skip to content

Commit 6b9b033

Browse files
Small cleanups identified in code review
Co-authored-by: Joe Rickerby <[email protected]>
1 parent b39c6eb commit 6b9b033

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

cibuildwheel/architecture.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,9 @@ def auto_archs(platform: PlatformName) -> "set[Architecture]":
154154
elif platform == "ios":
155155
# iOS defaults to building all targets with the same CPU architecture
156156
# as the native simulator architecture
157-
if native_arch == Architecture.x86_64_iphonesimulator:
158-
result = {
159-
Architecture.x86_64_iphonesimulator,
160-
}
161-
else:
162-
result = {
163-
Architecture.arm64_iphonesimulator,
164-
Architecture.arm64_iphoneos,
165-
}
157+
# build actual iOS wheels on arm64
158+
if native_arch == Architecture.arm64_iphonesimulator:
159+
result.add(Architecture.arm64_iphoneos)
166160

167161
return result
168162

cibuildwheel/ios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def cross_virtualenv(
166166
environment.
167167
168168
:param py_version: The Python version (major.minor) in use
169-
:param target_python: The path to the python binary for the targret platform
169+
:param target_python: The path to the python binary for the target platform
170170
:param multiarch: The multiarch tag for the target platform (i.e., the value
171171
of `sys.implementation._multiarch`)
172172
:param build_python: The path to the python binary for the build platform

0 commit comments

Comments
 (0)