diff --git a/recipe/0001-Replace-function-deprecated-in-numpy-2.0.patch b/recipe/0001-Replace-function-deprecated-in-numpy-2.0.patch new file mode 100644 index 0000000..e57fd64 --- /dev/null +++ b/recipe/0001-Replace-function-deprecated-in-numpy-2.0.patch @@ -0,0 +1,25 @@ +From 2fa733a4d9cf8d5c55d5509b00a5f193473c1bbc Mon Sep 17 00:00:00 2001 +From: mauzey1 +Date: Wed, 29 May 2024 11:12:15 -0700 +Subject: [PATCH] Replace function deprecated in numpy 2.0 + +--- + setup.py.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py.in b/setup.py.in +index 745c9e9..4372c2c 100755 +--- a/setup.py.in ++++ b/setup.py.in +@@ -3,7 +3,7 @@ import numpy + import os + from setuptools import setup, Extension + +-include_dirs = [numpy.lib.utils.get_include(),"include","include/cdTime"] ++include_dirs = [numpy.get_include(),"include","include/cdTime"] + + library_dirs = [ os.path.join("@prefix@","lib") ,'.'] + include_dirs.append(os.path.join("@prefix@","include")) +-- +2.39.2 (Apple Git-143) + diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 7aeb59a..59ad1fc 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -7,6 +7,8 @@ package: source: url: https://github.com/PCMDI/cmor/archive/{{ version }}.tar.gz sha256: 5f5a44e660104916dd0a3d0d942234db375d2a4ffb4f4113ec88cfdd93f99ef4 + patches: + - 0001-Replace-function-deprecated-in-numpy-2.0.patch build: number: 1