Skip to content

Commit becd4c9

Browse files
committed
Added a comment about the provenance of the _multiarch attribute.
1 parent 3fbbf21 commit becd4c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mesonpy/_tags.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def _get_ios_platform_tag() -> str:
168168
except ValueError:
169169
version = tuple(map(int, platform.ios_ver().release.split('.')))[:2]
170170

171+
# Although _multiarch is an internal implementation detail, it's a core part
172+
# of how CPython is implemented on iOS; this attribute is also relied upon
173+
# by `packaging` as part of tag determiniation.
171174
multiarch = sys.implementation._multiarch.replace('-', '_')
172175

173176
return f"ios_{version[0]}_{version[1]}_{multiarch}"

0 commit comments

Comments
 (0)