Skip to content

Commit

Permalink
build(meson): use find_program('python3') (#1386)
Browse files Browse the repository at this point in the history
If you really want to be sure to always find python3 when running Meson (and not some other implementation like [Muon](https://muon.build)) it is a bit better to use `find_program('python3')`, as described in https://mesonbuild.com/Reference-manual_functions.html#find_program : "if the "python3" program is requested and it is not found in the system, Meson will return its current interpreter

Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
  • Loading branch information
Tachi107 and baylesj authored Sep 10, 2024
1 parent badbbc7 commit fd1abe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if meson.is_subproject() or not get_option('tests')
subdir_done()
endif

python = import('python').find_installation()
python = find_program('python3')

jsoncpp_test = executable(
'jsoncpp_test', files([
Expand Down

0 comments on commit fd1abe4

Please sign in to comment.