diff --git a/app/dialogs/meson.build b/app/dialogs/meson.build index 545da8e337..c137d4f7c9 100644 --- a/app/dialogs/meson.build +++ b/app/dialogs/meson.build @@ -2,13 +2,13 @@ welcome_dialog_data_h = custom_target('welcome-dialog-data-h', input : [meson.project_source_root() / 'tools/generate-welcome-dialog-data.py', meson.project_source_root() / 'desktop/org.gimp.GIMP.appdata.xml.in.in'], output : ['welcome-dialog-data.h'], - command : ['python3', '@INPUT0@', gimp_version, '--header'], + command : [python, '@INPUT0@', gimp_version, '--header'], capture: true) welcome_dialog_data_c = custom_target('welcome-dialog-data-c', input : [meson.project_source_root() / 'tools/generate-welcome-dialog-data.py', meson.project_source_root() / 'desktop/org.gimp.GIMP.appdata.xml.in.in'], output : ['welcome-dialog-data.c'], - command : ['python3', '@INPUT0@', gimp_version], + command : [python, '@INPUT0@', gimp_version], capture: true) libappdialogs_sources = [ diff --git a/icons/Color/meson.build b/icons/Color/meson.build index ecd2d423be..dc51a5242d 100644 --- a/icons/Color/meson.build +++ b/icons/Color/meson.build @@ -23,7 +23,7 @@ foreach install : install_icons dup_icons = [] foreach input : inputs input = '../icon-lists/@0@.list'.format(input) - cmd = run_command('python3', '-c', + cmd = run_command(python, '-c', py_cmd.format(indir, suffix, input), check: true) dup_icons += cmd.stdout().strip().split(',') diff --git a/icons/Symbolic/meson.build b/icons/Symbolic/meson.build index f574bdcb69..0662b171be 100644 --- a/icons/Symbolic/meson.build +++ b/icons/Symbolic/meson.build @@ -28,7 +28,7 @@ foreach install : install_icons dup_icons = [] foreach input : inputs input = '../icon-lists/@0@.list'.format(input) - cmd = run_command('python3', '-c', + cmd = run_command(python, '-c', py_cmd.format(indir, suffix, input), check: true) dup_icons += cmd.stdout().strip().split(',') diff --git a/icons/meson.build b/icons/meson.build index 83bbaf4ab2..2b65128643 100644 --- a/icons/meson.build +++ b/icons/meson.build @@ -60,7 +60,7 @@ foreach theme : themes foreach input : inputs icon_list = 'icon-lists/@0@.list'.format(input) py_cmd = 'print(",".join([line.strip() for line in open("@0@") if line.strip() != "" and line.strip()[0] != "#"]))' - cmd = run_command('python3', '-c', + cmd = run_command(python, '-c', py_cmd.format(icon_list), check: true) dup_icons += cmd.stdout().strip().split(',') diff --git a/meson.build b/meson.build index 7c59b4f343..41b2de6f8d 100644 --- a/meson.build +++ b/meson.build @@ -1609,12 +1609,12 @@ endif # git-version.h is already present and not generated if dist tarball -is_git_repository = run_command('python3', '-c', +is_git_repository = run_command(python, '-c', 'import sys,os; sys.exit(0 if os.path.exists(".git") else 1)', check: false ).returncode() == 0 -has_version_h = run_command('python3', '-c', +has_version_h = run_command(python, '-c', 'import sys,os; sys.exit(0 if os.path.exists("git-version.h") else 1)', check: false ).returncode() == 0