From 7d5a0f7ad8ea7806bf2b1c0cc605c0b2374d8b68 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 8 Jul 2025 15:48:53 +0200 Subject: [PATCH] disable deprecated APIs in NumPy (from before version 1.7) to silence warning --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index d34ec32..3162f1f 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ peakfinder8_ext = Extension( include_dirs = [peakfinder8_include_dir, numpy.get_include()], library_dirs = [peakfinder8_library_dir], libraries = ["peakfinder8"], + define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")], language = "c++" )