Skip to content

Commit cb70482

Browse files
msimaceksteve-s
authored andcommitted
Add patch for meson-python
1 parent d59a00f commit cb70482

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/mesonpy/_tags.py b/mesonpy/_tags.py
2+
index 7416008..d7ca216 100644
3+
--- a/mesonpy/_tags.py
4+
+++ b/mesonpy/_tags.py
5+
@@ -2,6 +2,7 @@
6+
7+
import os
8+
import platform
9+
+import struct
10+
import sys
11+
import sysconfig
12+
13+
@@ -18,7 +19,7 @@ INTERPRETERS = {
14+
}
15+
16+
17+
-_32_BIT_INTERPRETER = sys.maxsize <= 2**32
18+
+_32_BIT_INTERPRETER = struct.calcsize("P") == 4
19+
20+
21+
def get_interpreter_tag() -> str:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[rules]]
2+
# Backport pypa/packaging PR for fixing graalpy architecture
3+
patch = 'meson-python.patch'

0 commit comments

Comments
 (0)