Skip to content

Commit

Permalink
[mesonpy] handle backend with environement variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ogiorgis committed Dec 21, 2023
1 parent 8154d21 commit a573951
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ py_mod = import('python')
py = py_mod.find_installation('python3', pure: false)
py_dep = py.dependency()

backend = get_option('deps_backend')
backend = run_command(py,
[
'-c',
'import os; print(os.environ.get("FLUIDSIM_TRANSONIC_BACKEND", "pythran"))'
],
check: true
).stdout().strip()

if backend == 'pythran'
incdir_numpy = run_command(
py,
Expand Down
1 change: 0 additions & 1 deletion meson.options

This file was deleted.

0 comments on commit a573951

Please sign in to comment.