[gnome-music/wip/mschraal/meson-python-module] meson: Use python module
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/meson-python-module] meson: Use python module
- Date: Thu, 13 Dec 2018 15:43:38 +0000 (UTC)
commit 26575bf4cfc6291bd53c0cbfe3a3d4c3021d5581
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Dec 13 16:40:15 2018 +0100
meson: Use python module
The Meson python3 module is deprecated.
Use the python module instead.
meson.build | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index ecd003e3..aca1685b 100644
--- a/meson.build
+++ b/meson.build
@@ -6,10 +6,13 @@ project('gnome-music',
# Importing modules
gnome = import('gnome')
i18n = import('i18n')
-python = import('python3')
+python = import('python')
+
+# Module objects
+py_installation = python.find_installation('python3')
# Make sure Python is installed and found
-if not python.find_python().found()
+if not py_installation.found()
error('No valid python3 binary found')
endif
@@ -28,7 +31,7 @@ else
endif
APPLICATION_ID = 'org.gnome.Music@0@'.format(PROFILE)
-PYTHON_DIR = join_paths(get_option('prefix'), python.sysconfig_path('purelib'))
+PYTHON_DIR = join_paths(get_option('prefix'), py_installation.get_path('purelib'))
PKGDATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), APPLICATION_ID)
PKGLIB_DIR = join_paths(get_option('prefix'), get_option('libdir'), APPLICATION_ID)
@@ -72,7 +75,7 @@ bin_config.set('rdnn_name', PROJECT_RDNN_NAME)
bin_config.set('pkgdatadir', PKGDATA_DIR)
bin_config.set('localedir', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
bin_config.set('pythondir', PYTHON_DIR)
-bin_config.set('pyexecdir', join_paths(get_option('prefix'), python.sysconfig_path('stdlib')))
+bin_config.set('pyexecdir', join_paths(get_option('prefix'), py_installation.get_path('stdlib')))
bin_config.set('schemasdir', '')
# Used for libgd
bin_config.set('pkglibdir', PKGLIB_DIR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]