From c8c84704d7b326804ac13a5a05f83a126fbbc4eb Mon Sep 17 00:00:00 2001 From: Rutger van Haasteren Date: Wed, 8 Nov 2023 17:14:09 +0100 Subject: [PATCH] Changed the fix for the numpy api deprecation warnings --- fastshermanmorrison/cython_fastshermanmorrison.pyx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fastshermanmorrison/cython_fastshermanmorrison.pyx b/fastshermanmorrison/cython_fastshermanmorrison.pyx index 84a6317..95fdcf2 100644 --- a/fastshermanmorrison/cython_fastshermanmorrison.pyx +++ b/fastshermanmorrison/cython_fastshermanmorrison.pyx @@ -1,9 +1,7 @@ # cython: language_level=3 # Define this before importing from numpy -cdef extern from "numpy/arrayobject.h": - #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION - pass +# distutils: define_macros = [('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')] cimport numpy as np import numpy as np