Skip to content

Commit 86fed4b

Browse files
committed
add numpy dep
1 parent 6ddb1a7 commit 86fed4b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bindings/python/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ requires = [
33
# ARROW-248, pin to less than 72.2.
44
"setuptools>=70,<72.2",
55
"cython>=3.0",
6+
# Needed for numpy headers.
7+
"numpy>=2.1.0",
68
# Must be kept in sync with "project.dependencies" below.
79
"pyarrow>=18.0,<18.1.0",
810
]

bindings/python/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,12 @@ def append_libbson_flags(module):
132132

133133

134134
def append_arrow_flags(ext):
135+
import numpy as np
135136
import pyarrow as pa
136137

137138
# From https://arrow.apache.org/docs/python/integration/extending.html#example
139+
# The Numpy C headers are currently required
140+
ext.include_dirs.append(np.get_include())
138141
ext.include_dirs.append(pa.get_include())
139142
ext.libraries.extend(pa.get_libraries())
140143
ext.library_dirs.extend(pa.get_library_dirs())

0 commit comments

Comments
 (0)