diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-01-12 10:50:22 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-01-13 13:32:48 -0800 |
commit | 022632c91b255739c5100601a02b197cb29cd23e (patch) | |
tree | 1b624726c0f5d801f7588e054a34bf70c4f8b8cb /mesonbuild/modules/pkgconfig.py | |
parent | 6180992d4939f931aaeae74138dae069a60a3485 (diff) | |
download | meson-022632c91b255739c5100601a02b197cb29cd23e.zip meson-022632c91b255739c5100601a02b197cb29cd23e.tar.gz meson-022632c91b255739c5100601a02b197cb29cd23e.tar.bz2 |
build/interperter: Add annotations and move input validation to interpreter
This moves the user input validation to the interpreter, instead of
being in the build module, and adds type annotations.
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index 7d347a6..db589a3 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -539,7 +539,7 @@ class PkgConfigModule(ExtensionModule): self.generate_pkgconfig_file(state, deps, subdirs, name, description, url, version, pcfile, conflicts, variables, False, dataonly) - res = build.Data(mesonlib.File(True, state.environment.get_scratch_dir(), pcfile), pkgroot) + res = build.Data([mesonlib.File(True, state.environment.get_scratch_dir(), pcfile)], pkgroot) variables = self.interpreter.extract_variables(kwargs, argname='uninstalled_variables', dict_new=True) variables = parse_variable_list(variables) |