We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1046d4a commit 82ac165Copy full SHA for 82ac165
python/pyarrow/meson.build
@@ -19,8 +19,8 @@
19
# custom location check
20
numpy_dep = dependency('numpy', required: false)
21
if not numpy_dep.found()
22
- incdir_numpy = run_command(
23
- 'python',
+ cmd = run_command(
+ py,
24
[
25
'-c',
26
'''import os
@@ -35,8 +35,15 @@ except Exception:
35
print(incdir)
36
''',
37
],
38
- check: true,
39
- ).stdout().strip()
+ check: false,
+ )
40
+
41
+ if cmd.returncode() != 0
42
+ message(cmd.stdout())
43
+ message(cmd.stderr())
44
+ error('Failure with NumPy command')
45
+ endif
46
+ numpy_inc = cmd.stdout().strip()
47
48
numpy_dep = declare_dependency(include_directories: incdir_numpy)
49
endif
0 commit comments