diff --git a/subprojects/gst-editing-services/bindings/python/meson.build b/subprojects/gst-editing-services/bindings/python/meson.build index d1f157ae81..59ce36d238 100644 --- a/subprojects/gst-editing-services/bindings/python/meson.build +++ b/subprojects/gst-editing-services/bindings/python/meson.build @@ -1,5 +1,8 @@ -install_data(['gi/overrides/GES.py'], install_dir: pygi_override_dir) - env = environment() env.prepend('_GI_OVERRIDES_PATH', meson.current_source_dir() / 'gi/overrides') meson.add_devenv(env) + +python.install_sources(['gi/overrides/GES.py'], + pure : false, + subdir: 'gi/overrides', +) diff --git a/subprojects/gst-editing-services/meson.build b/subprojects/gst-editing-services/meson.build index b949f55317..3955a597d6 100644 --- a/subprojects/gst-editing-services/meson.build +++ b/subprojects/gst-editing-services/meson.build @@ -144,6 +144,8 @@ gir_init_section = [ '--add-init-section=' + \ 'gst_init(NULL,NULL);' + \ 'ges_init();', '--quiet'] +pymod = import('python') +python = pymod.find_installation(required: get_option('python')) has_python = false static_build = get_option('default_library') == 'static' if static_build @@ -153,8 +155,6 @@ if static_build message('Disabling python support as it is not supported on static builds') endif elif build_gir - pymod = import('python') - python = pymod.find_installation(required: get_option('python')) if python.found() # Workaround for https://github.com/mesonbuild/meson/issues/5629 pythonver = python.language_version() diff --git a/subprojects/gst-python/gi/overrides/meson.build b/subprojects/gst-python/gi/overrides/meson.build index 5977ee3c93..530df05e76 100644 --- a/subprojects/gst-python/gi/overrides/meson.build +++ b/subprojects/gst-python/gi/overrides/meson.build @@ -1,7 +1,8 @@ pysources = ['Gst.py', 'GstPbutils.py', 'GstVideo.py', 'GstAudio.py'] -install_data(pysources, - install_dir: pygi_override_dir, - install_tag: 'python-runtime') +python.install_sources(pysources, + pure : false, + subdir: 'gi/overrides', +) gstpython = python.extension_module('_gi_gst', sources: ['gstmodule.c'],