File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff line change @@ -132,9 +132,12 @@ def append_libbson_flags(module):
132132
133133
134134def 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 ())
You can’t perform that action at this time.
0 commit comments