Skip to content

Commit b651698

Browse files
Add patch for PyArrow to build against NumPy v2
1 parent 73edeae commit b651698

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

‎packages/pyarrow/meta.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ source:
88
sha256: 2dc8da5f8796afe213ecc5e5aba85bb82d91520eff3cf315784a52d0fa61d7fc
99
patches:
1010
- patches/autoload_timezones.patch
11+
- patches/0001-Fix-include-directory-for-NumPy-v2.patch
1112
build:
1213
script: |
1314
# move things around so that the top level folder is the python folder
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 48b75dbacee6bae365f91e55af302e3234b3bebd Mon Sep 17 00:00:00 2001
2+
From: Agriya Khetarpal <[email protected]>
3+
Date: Thu, 19 Dec 2024 02:11:43 +0530
4+
Subject: [PATCH] Fix include directory for NumPy v2
5+
6+
NumPy 2.0 changed the location of the header files
7+
---
8+
python/CMakeLists.txt | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
12+
index c39a1129ac..6171d1b0f3 100644
13+
--- a/python/CMakeLists.txt
14+
+++ b/python/CMakeLists.txt
15+
@@ -166,7 +166,7 @@ if($ENV{PYODIDE})
16+
# modules (at least under Pyodide it does).
17+
set(Python3_INCLUDE_DIR $ENV{PYTHONINCLUDE})
18+
set(Python3_LIBRARY $ENV{CPYTHONLIB})
19+
- set(Python3_NumPy_INCLUDE_DIR $ENV{NUMPY_LIB}/core/include)
20+
+ set(Python3_NumPy_INCLUDE_DIR $ENV{NUMPY_LIB}/_core/include)
21+
set(Python3_EXECUTABLE)
22+
set(ENV{_PYTHON_SYSCONFIGDATA_NAME} $ENV{SYSCONFIG_NAME})
23+
# we set the c and cxx compiler manually to bypass pywasmcross
24+
--
25+
2.39.5 (Apple Git-154)
26+

0 commit comments

Comments
 (0)