Skip to content

Commit 004b546

Browse files
committed
patch the error and continue silently
1 parent 4f8dcb3 commit 004b546

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ def numpy(*args):
121121
typedef int (PyArray_ArgSortFunc)(void *, npy_intp *, npy_intp, void *);
122122
123123
124+
diff --git a/numpy/core/src/multiarray/shape.c b/numpy/core/src/multiarray/shape.c
125+
index 30820737e..d8a350f0d 100644
126+
--- a/numpy/core/src/multiarray/shape.c
127+
+++ b/numpy/core/src/multiarray/shape.c
128+
@@ -94,3 +94,4 @@ PyArray_Resize(PyArrayObject *self, PyArray_Dims *newshape, int refcheck,
129+
"Use the np.resize function or refcheck=False");
130+
- return NULL;
131+
+ PyErr_Clear();
132+
+ refcnt = 1;
133+
#else
134+
refcnt = PyArray_REFCOUNT(self);
135+
#endif /* PYPY_VERSION */
136+
137+
124138
diff --git a/numpy/linalg/setup.py 2018-02-28 17:03:26.000000000 +0100
125139
index e450a66..ed538b4 100644
126140
--- a/numpy/linalg/setup.py

0 commit comments

Comments
 (0)