Skip to content

Commit

Permalink
Massage paths into relative
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Jun 28, 2024
1 parent 5a87919 commit 009864f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ omp_dep = dependency('openmp')
library_install_dir = py.get_install_dir() / 'pixell'

# Includes

# Need to massage these into relative paths to keep meson happy.
# It does not allow for absolute paths.
incdir_numpy = run_command(
py,
['-c', 'import numpy; print(numpy.get_include())'],
['-c', 'import numpy; import os; print(os.path.relpath(numpy.get_include()))'],
check: true
).stdout().strip()

incdir_f2py = run_command(
py,
['-c', 'import numpy.f2py; print(numpy.f2py.get_include())'],
['-c', 'import numpy.f2py; import os; print(os.path.relpath(numpy.f2py.get_include()))'],
check: true
).stdout().strip()

Expand Down

0 comments on commit 009864f

Please sign in to comment.