From bd3e280cbfece1efd2baca922cf230141ce733a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 20 Mar 2024 23:23:13 +0100 Subject: [PATCH] meson: Remove the `python` option We can instead rely solely on Meson's Python module, as Meson supports specifying the `python` binary to use. --- meson.build | 5 +---- meson.options | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/meson.build b/meson.build index 2d21069..30f36bf 100644 --- a/meson.build +++ b/meson.build @@ -43,10 +43,7 @@ if cc.has_header('android/api-level.h') host_os = 'android' endif -python = get_option('python') -if python == '' - python = import('python').find_installation() -endif +python = import('python').find_installation() python_incdir = get_option('python_incdir') if python_incdir == '' diff --git a/meson.options b/meson.options index 37d05a8..8e3179f 100644 --- a/meson.options +++ b/meson.options @@ -1,9 +1,3 @@ -option('python', - type: 'string', - value: '', - description: 'Python interpreter to build for' -) - option('python_incdir', type: 'string', value: '',