Skip to content

Commit fd1abe4

Browse files
Tachi107baylesj
andauthored
build(meson): use find_program('python3') (#1386)
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>
1 parent badbbc7 commit fd1abe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if meson.is_subproject() or not get_option('tests')
7373
subdir_done()
7474
endif
7575

76-
python = import('python').find_installation()
76+
python = find_program('python3')
7777

7878
jsoncpp_test = executable(
7979
'jsoncpp_test', files([

0 commit comments

Comments
 (0)