Skip to content

Commit 5574b13

Browse files
committed
Sync tags change from packaging to support GraalPy
1 parent 04e0066 commit 5574b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mesonpy/_tags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import os
88
import platform
9+
import struct
910
import sys
1011
import sysconfig
1112
import typing
@@ -25,7 +26,7 @@
2526
}
2627

2728

28-
_32_BIT_INTERPRETER = sys.maxsize <= 2**32
29+
_32_BIT_INTERPRETER = struct.calcsize("P") == 4
2930

3031

3132
def get_interpreter_tag() -> str:

0 commit comments

Comments
 (0)