summaryrefslogtreecommitdiff
path: root/math/py-numexpr/files
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-06-22 00:34:26 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-06-22 00:36:35 +0800
commit6cfaec81b65d3107f99b41a075608c3d0ec87b5f (patch)
treea3316dec0ed544f1ad6aba96d3af5c7877c025fd /math/py-numexpr/files
parentwww/py-requests-cache93: Allow build with py-cattrs 22.1.0 (diff)
math/py-numexpr: Fix build with py-numpy 1.23.0+
PR: 264724 Reported by: wen Reference: https://numpy.org/doc/stable/reference/c-api/array.html#c.NPY_ARRAY_WRITEBACKIFCOPY
Diffstat (limited to 'math/py-numexpr/files')
-rw-r--r--math/py-numexpr/files/patch-numexpr-interpreter.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/py-numexpr/files/patch-numexpr-interpreter.cpp b/math/py-numexpr/files/patch-numexpr-interpreter.cpp
new file mode 100644
index 000000000000..6fd9735b9231
--- /dev/null
+++ b/math/py-numexpr/files/patch-numexpr-interpreter.cpp
@@ -0,0 +1,11 @@
+--- numexpr/interpreter.cpp.orig 2018-07-12 17:49:43 UTC
++++ numexpr/interpreter.cpp
+@@ -1269,7 +1269,7 @@ NumExpr_run(NumExprObject *self, PyObject *args, PyObj
+ }
+ Py_INCREF(dtypes[0]);
+ a = (PyArrayObject *)PyArray_FromArray(operands[0], dtypes[0],
+- NPY_ARRAY_ALIGNED|NPY_ARRAY_UPDATEIFCOPY);
++ NPY_ARRAY_ALIGNED|NPY_ARRAY_WRITEBACKIFCOPY);
+ if (a == NULL) {
+ goto fail;
+ }