Skip to content

Commit 18a0da2

Browse files
committed
Remove numpy meson patches no longer needed for Windows
1 parent 50ddfe3 commit 18a0da2

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

graalpython/lib-graalpython/patches/numpy-1.26.4.patch

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,3 @@ index 1c59bf3..519fabc 100644
9292
volatile char NPY_UNUSED(c) = *(char *)param;
9393
}
9494

95-
diff --git a/vendored-meson/meson/mesonbuild/utils/universal.py b/vendored-meson/meson/mesonbuild/utils/universal.py
96-
index 1694912..a555fe3 100644
97-
--- a/vendored-meson/meson/mesonbuild/utils/universal.py
98-
+++ b/vendored-meson/meson/mesonbuild/utils/universal.py
99-
@@ -727,6 +727,7 @@ def windows_detect_native_arch() -> str:
100-
"""
101-
if sys.platform != 'win32':
102-
return ''
103-
+ return 'amd64' # Workaround for GraalPy bug on Windows with kernel32.GetCurrentProcess()
104-
try:
105-
import ctypes
106-
process_arch = ctypes.c_ushort()

graalpython/lib-graalpython/patches/numpy-2.0.0.patch

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,3 @@ index 1c59bf3..519fabc 100644
105105
volatile char NPY_UNUSED(c) = *(char *)param;
106106
}
107107

108-
diff --git a/vendored-meson/meson/mesonbuild/utils/universal.py b/vendored-meson/meson/mesonbuild/utils/universal.py
109-
index 1694912..a555fe3 100644
110-
--- a/vendored-meson/meson/mesonbuild/utils/universal.py
111-
+++ b/vendored-meson/meson/mesonbuild/utils/universal.py
112-
@@ -727,6 +727,7 @@ def windows_detect_native_arch() -> str:
113-
"""
114-
if sys.platform != 'win32':
115-
return ''
116-
+ return 'amd64' # Workaround for GraalPy bug on Windows with kernel32.GetCurrentProcess()
117-
try:
118-
import ctypes
119-
process_arch = ctypes.c_ushort()

0 commit comments

Comments
 (0)