Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix NumPy and Cython deprecation and initialization warnings
Fix NumPy and Cython deprecation and initialization warnings. Fixes: ``` dipy/core/interpolation.c:45594:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations] 0, /*tp_print*/ ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED' ``` and ``` /Users/runner/work/1/s/venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] ^ ``` raised for example in: https://dev.azure.com/dipy/46625eaf-7255-4a2c-9e92-befcdbdca2a8/_apis/build/builds/492/logs/85 The `tp_print` deprecation warning only when using Python 3.8 on macOS. Related Cython references: cython/cython#3201 cython/cython#3474
- Loading branch information