Skip to content

Commit e32d77e

Browse files
committed
extend numpy 1.26.4 patch to make compilation work on windows
1 parent b4d49ab commit e32d77e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h
22
index d4b73eb..af90a68 100644
3+
--- a/numpy/_build_utils/gitversion.py
4+
+++ b/numpy/_build_utils/gitversion.py
5+
@@ -28,7 +28,7 @@ def git_version(version):
6+
git_hash = ''
7+
try:
8+
p = subprocess.Popen(
9+
- ['git', 'log', '-1', '--format="%H %aI"'],
10+
+ ['git', 'log', '-1', "--format='%H %aI'"],
11+
stdout=subprocess.PIPE,
12+
stderr=subprocess.PIPE,
13+
cwd=os.path.dirname(__file__),
314
--- a/numpy/core/include/numpy/ndarrayobject.h
415
+++ b/numpy/core/include/numpy/ndarrayobject.h
516
@@ -225,7 +225,7 @@ NPY_TITLE_KEY_check(PyObject *key, PyObject *value)

0 commit comments

Comments
 (0)