Skip to content

Commit 7a92772

Browse files
committed
Simplify numpy detection job
1 parent 6efa5d4 commit 7a92772

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

python/pyarrow/meson.build

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,9 @@ if not numpy_dep.found()
2323
py,
2424
[
2525
'-c',
26-
'''import os
26+
'''
2727
import numpy as np
28-
try:
29-
# Check if include directory is inside the pyarrow dir
30-
# e.g. a venv created inside the pyarrow dir
31-
# If so, convert it to a relative path
32-
incdir = os.path.relpath(np.get_include())
33-
except Exception:
34-
incdir = np.get_include()
35-
print(incdir)
28+
print(np.get_include())
3629
''',
3730
],
3831
check: true,

0 commit comments

Comments
 (0)