aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-07-22 01:16:24 +0300
committerGitHub <noreply@github.com>2021-07-22 01:16:24 +0300
commit4703f4c2444c4a5d61645c4d3d1118f87946335a (patch)
treede55e0127d82859d553b0850f3c0b9c44911034a /mesonbuild/interpreter/interpreter.py
parent06bf056264e5614ecd779b0e785fb03bba1dfb63 (diff)
parentb4e826bff3c9e72230634fb0f7f10904b777d795 (diff)
downloadmeson-4703f4c2444c4a5d61645c4d3d1118f87946335a.zip
meson-4703f4c2444c4a5d61645c4d3d1118f87946335a.tar.gz
meson-4703f4c2444c4a5d61645c4d3d1118f87946335a.tar.bz2
Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependency
Cleanup the python module
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 97940d3..22d0282 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2006,9 +2006,12 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
'"rename" and "sources" argument lists must be the same length if "rename" is given. '
f'Rename has {len(rename)} elements and sources has {len(sources)}.')
- data = build.Data(
- sources, kwargs['install_dir'], kwargs['install_mode'],
- self.subproject, rename)
+ return self.install_data_impl(sources, kwargs['install_dir'], kwargs['install_mode'], rename)
+
+ def install_data_impl(self, sources: T.List[mesonlib.File], install_dir: str,
+ install_mode: FileMode, rename: T.Optional[str]) -> build.Data:
+ """Just the implementation with no validation."""
+ data = build.Data(sources, install_dir, install_mode, self.subproject, rename)
self.build.data.append(data)
return data