File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,11 @@ def get_platform_identifier(target_arch=None) -> str:
4141 """Get a platform identifier (arch-os) for the current system or target architecture.
4242
4343 Args:
44- target_arch: Optional target architecture. If provided, overrides auto-detection.
45- For macOS: 'universal2', 'arm64', or 'x86_64'
46- For Linux: 'aarch64' or 'x86_64'
47- For Windows: 'x64' or 'arm64'
44+ target_arch: Optional target architecture.
45+ If provided, overrides auto-detection.
46+ For macOS: 'universal2', 'arm64', or 'x86_64'
47+ For Linux: 'aarch64' or 'x86_64'
48+ For Windows: 'arm64' or 'x64'
4849
4950 Returns one of:
5051 - universal-apple-darwin (for macOS universal)
@@ -159,6 +160,7 @@ def find_available_platforms():
159160# For wheel building (both bdist_wheel and build)
160161if 'bdist_wheel' in sys .argv or 'build' in sys .argv :
161162 # Check if we're building for a specific architecture
163+ # This is mostly to support macOS wheel builds
162164 target_arch = None
163165 for i , arg in enumerate (sys .argv ):
164166 if arg == '--plat-name' :
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def _get_possible_search_paths() -> list[Path]:
185185 # Add platform identifier subfolder
186186 possible_paths .append (base_path / platform_id )
187187
188- # Add universal fallback for macOS if we're not already looking for universal
188+ # Add universal fallback for macOS if not already looking for universal
189189 if sys .platform == "darwin" and platform_id != "universal-apple-darwin" :
190190 for base_path in base_paths :
191191 possible_paths .append (base_path / "universal-apple-darwin" )
You can’t perform that action at this time.
0 commit comments