Skip to content

Commit

Permalink
WIP: remove all meson command to tests the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ogiorgis committed Dec 18, 2023
1 parent 1238475 commit 3a1973c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions fluidsim/base/time_stepping/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ python_sources = [
'simple.py',
]

backend = get_option('deps_backend')
if backend == 'pythran'
pythran = find_program('pythran', native: true)
#run_command(['transonic', '--meson', 'pseudo_spect.py'], check: true)
run_command(['transonic', 'pseudo_spect.py', '-af', '"-march=native -DUSE_XSIMD -Ofast"'])
run_command(
[
'pythran', '-E', join_paths(meson.current_source_dir(), '__pythran__', 'pseudo_spect.py'),
'-o', join_paths(meson.current_source_dir(), '__pythran__', 'pseudo_spect.cpp')
]
)
endif
# backend = get_option('deps_backend')
# if backend == 'pythran'
# pythran = find_program('pythran', native: true)
# # run_command(['transonic', '--meson', 'pseudo_spect.py'], check: true)
# # or
# # run_command(['transonic', 'pseudo_spect.py', '-af', '"-march=native -DUSE_XSIMD -Ofast"'])
# # run_command(
# # [
# # 'pythran', '-E', join_paths(meson.current_source_dir(), '__pythran__', 'pseudo_spect.py'),
# # '-o', join_paths(meson.current_source_dir(), '__pythran__', 'pseudo_spect.cpp')
# # ]
# # )
# endif

py3.install_sources(
python_sources,
Expand Down
2 changes: 1 addition & 1 deletion lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project(

# https://mesonbuild.com/Python-module.html
py_mod = import('python')
py3 = py_mod.find_installation()
py3 = py_mod.find_installation('python3', pure: false)
py3_dep = py3.dependency()

subdir('fluidsim_core')

0 comments on commit 3a1973c

Please sign in to comment.