From 764a6cee717be0d277b6c041409df9b5878b7629 Mon Sep 17 00:00:00 2001 From: James Douglass Date: Thu, 20 Jun 2024 14:33:15 -0700 Subject: [PATCH] Avoiding deprecated numpy APIs. RE:#396 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index a83fc6bf..00365671 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,7 @@ 'src/pygeoprocessing/routing'], extra_compile_args=compiler_and_linker_args, extra_link_args=compiler_and_linker_args, + define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')], language="c++", ), Extension( @@ -61,6 +62,7 @@ 'src/pygeoprocessing/routing'], extra_compile_args=compiler_and_linker_args, extra_link_args=compiler_and_linker_args, + define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')], language="c++", ), Extension( @@ -70,6 +72,7 @@ include_dirs=[numpy.get_include()], extra_compile_args=compiler_and_linker_args, extra_link_args=compiler_and_linker_args, + define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')], language="c++" ), ])