Skip to content

Commit 6ec99a5

Browse files
authored
fixing numpy absolute include path
1 parent 4702764 commit 6ec99a5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

quaddtype2/meson.build

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ project(
66
py_mod = import('python')
77
py = py_mod.find_installation('/home/rootacess/numpy-user-dtypes/quaddtype2/.venv/bin/python3')
88

9-
# incdir_numpy = run_command(py,
10-
# [
11-
# '-c',
12-
# 'import numpy; import os; print(os.path.relpath(numpy.get_include()))'
13-
# ],
14-
# check: true
15-
# ).stdout().strip()
9+
incdir_numpy = run_command(py,
10+
[
11+
'-c',
12+
'import numpy; import os; print(os.path.relpath(numpy.get_include()))'
13+
],
14+
check: true
15+
).stdout().strip()
1616

1717
includes = include_directories(
1818
[
19-
'.venv/lib/python3.12/site-packages/numpy/_core/include',
19+
incdir_numpy,
2020
'quaddtype/src'
2121
]
2222
)

0 commit comments

Comments
 (0)