Skip to content

Commit

Permalink
BUG: fix wheel platform tag for GraalPy
Browse files Browse the repository at this point in the history
On the JVM sys.maxsize is 2**31-1 because Java arrays can be indexed
only with 32-bit indices also on 64bit platforms. Fix this by using
the same default implementation as found in stdlib platform module and
implemented in packaging.
  • Loading branch information
msimacek authored and dnicolodi committed Oct 6, 2024
1 parent 04e0066 commit 615f6b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesonpy/_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import os
import platform
import struct
import sys
import sysconfig
import typing
Expand All @@ -25,7 +26,7 @@
}


_32_BIT_INTERPRETER = sys.maxsize <= 2**32
_32_BIT_INTERPRETER = struct.calcsize('P') == 4


def get_interpreter_tag() -> str:
Expand Down

0 comments on commit 615f6b0

Please sign in to comment.