diff options
-rw-r--r-- | numpy/core/src/multiarray/convert_datatype.c | 1 | ||||
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/convert_datatype.c b/numpy/core/src/multiarray/convert_datatype.c index 7ac74e77c..9fed47814 100644 --- a/numpy/core/src/multiarray/convert_datatype.c +++ b/numpy/core/src/multiarray/convert_datatype.c @@ -13,6 +13,7 @@ #include "numpy/npy_math.h" #include "common.h" +#include "ctors.h" #include "scalartypes.h" #include "mapping.h" diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 3e0fcc08d..a6bbb31e8 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4996,6 +4996,16 @@ PyUFunc_FromFuncAndDataAndSignatureAndIdentity(PyUFuncGenericFunction *func, voi NPY_NO_EXPORT int PyUFunc_SetUsesArraysAsData(void **data, size_t i) { + /* NumPy 1.19, 2020-01-24 */ + if (DEPRECATE( + "PyUFunc_SetUsesArraysAsData() C-API function is deprecated " + "and expected to be removed rapidly. If you are using it (i.e. see " + "this warning/error), please notify the NumPy developers. " + "It is currently assumed that this function is simply unused and " + "its removal will facilitate the implementation of better " + "approaches.") < 0) { + return -1; + } data[i] = (void*)PyUFunc_SetUsesArraysAsData; return 0; } |