[rhythmbox/mesonjunk: 5/9] build: use meson's python module to find python
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/mesonjunk: 5/9] build: use meson's python module to find python
- Date: Sun, 29 May 2022 12:03:45 +0000 (UTC)
commit 050a1140cf0d0ebda293435a626cd5227b4c51df
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed May 25 08:54:56 2022 +1000
build: use meson's python module to find python
meson.build | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1a7e739ed..cd4b2e60c 100644
--- a/meson.build
+++ b/meson.build
@@ -6,6 +6,7 @@ project('rhythmbox', 'c',
gnome = import('gnome')
i18n = import('i18n')
pkg = import('pkgconfig')
+python = import('python')
# plugin API versioning
# Increment on interface addition, reset on removal
@@ -170,10 +171,9 @@ cdata.set('PLUGINDATADIR', plugindatadir)
cdata.set('SAMPLEPLUGINDIR', libdir / 'rhythmbox' / 'sample-plugins')
enable_python = false
-python = find_program('python3', required: get_option('plugins_python'))
+python_install = python.find_installation('python3', required: get_option('plugins_python'))
pygobject = dependency('pygobject-3.0', version: '>= 3.0.0', required: get_option('plugins_python'))
-pyoverridesdir = run_command([python, '-c', '''import gi; print(gi._overridesdir)'''], check:
true).stdout().strip()
-if python.found() and pygobject.found()
+if python_install.found() and pygobject.found()
enable_python = true
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]