[glade/glade-3-38] Python plugin: Fix build against Python 3.9
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-38] Python plugin: Fix build against Python 3.9
- Date: Fri, 20 Nov 2020 21:01:51 +0000 (UTC)
commit 947fe147944d5babbaf3b68eaa28cb27a8b47aae
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Mon Nov 9 17:35:04 2020 +0000
Python plugin: Fix build against Python 3.9
This basically reverts 6f4fb5672f41201a20e0f879a7d7d7b96f045425,
returning to Meson's `python` module, since the `python-3.8-embed`
dependency obviously only works with Python 3.8.
We're using the `embed` kwarg which was added in Meson 0.53.0, so we
need to bump the minimum `meson_version`.
meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index fc4c4492..34498a4f 100644
--- a/meson.build
+++ b/meson.build
@@ -11,7 +11,7 @@ project(
version: '3.38.1',
license: 'GPL2',
default_options: 'buildtype=debugoptimized',
- meson_version: '>= 0.49.0',
+ meson_version: '>= 0.53.0',
)
glade_name = meson.project_name()
@@ -153,7 +153,7 @@ pygobject_version = '3.8.0'
pygobject_dep = dependency('pygobject-3.0', version: '>= ' + pygobject_version, required:
get_option('python'))
have_python = pygobject_dep.found()
if have_python
- python_dep = dependency('python-3.8-embed', version: '>= 3.8')
+ python_dep = import('python').find_installation().dependency(embed: true)
version_array = pygobject_version.split('.')
config_h.set('PYGOBJECT_REQUIRED_MAJOR', version_array[0].to_int())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]