From 5574b13355c1651c7862b83c863ebf745aa5f3dc Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Thu, 19 Sep 2024 09:48:19 +0200 Subject: [PATCH] Sync tags change from packaging to support GraalPy --- mesonpy/_tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonpy/_tags.py b/mesonpy/_tags.py index 846f4a684..d4dcf43f8 100644 --- a/mesonpy/_tags.py +++ b/mesonpy/_tags.py @@ -6,6 +6,7 @@ import os import platform +import struct import sys import sysconfig import typing @@ -25,7 +26,7 @@ } -_32_BIT_INTERPRETER = sys.maxsize <= 2**32 +_32_BIT_INTERPRETER = struct.calcsize("P") == 4 def get_interpreter_tag() -> str: