Commit ba3bc86d authored by Jan Alexander Steffens's avatar Jan Alexander Steffens
Browse files

Python plugin: Fix build against Python 3.9

This basically reverts 6f4fb567,
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`.
parent 7ff26ad6
Pipeline #232258 failed with stages
in 3 minutes and 9 seconds
......@@ -11,7 +11,7 @@ project(
version: '3.39.0',
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())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment