aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-05-06 09:31:19 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-05-08 21:31:55 +0300
commited57646475cfe766a84dcd256895ce8375a09a62 (patch)
treed229b9a0d458c522892e4b35e4971a1d82f47400 /mesonbuild
parent589236226856f591c9e8daf0cb7aa1aef8862388 (diff)
downloadmeson-ed57646475cfe766a84dcd256895ce8375a09a62.zip
meson-ed57646475cfe766a84dcd256895ce8375a09a62.tar.gz
meson-ed57646475cfe766a84dcd256895ce8375a09a62.tar.bz2
interpreter: 'embed' kwarg is only valid in python module
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py1
-rw-r--r--mesonbuild/modules/python.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 270e891..eadb6b4 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -176,7 +176,6 @@ permitted_dependency_kwargs = {
'cmake_package_version',
'components',
'default_options',
- 'embed',
'fallback',
'include_type',
'language',
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 422155b..2bd354f 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -347,7 +347,7 @@ class PythonInstallation(ExternalProgramHolder):
return self.interpreter.func_shared_module(None, args, kwargs)
- @permittedKwargs(permitted_dependency_kwargs)
+ @permittedKwargs(permitted_dependency_kwargs | {'embed'})
@FeatureNewKwargs('python_installation.dependency', '0.53.0', ['embed'])
def dependency_method(self, args, kwargs):
if args: