Skip to content

Commit

Permalink
Patch to support Numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mauzey1 committed Jun 24, 2024
1 parent da41524 commit 51febc8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions recipe/0001-Replace-function-deprecated-in-numpy-2.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 2fa733a4d9cf8d5c55d5509b00a5f193473c1bbc Mon Sep 17 00:00:00 2001
From: mauzey1 <[email protected]>
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)

2 changes: 2 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51febc8

Please sign in to comment.