diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-24 09:14:25 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-12-17 14:47:18 -0800 |
| commit | cd6824aaaec9eb4fd76bfd2ab7e8410f6c571c47 (patch) | |
| tree | d1042171ea45d1cbd95026717e690726a7d33f59 /mesonbuild/dependencies/pkgconfig.py | |
| parent | 0e04fcc664f1817d486156c6a149142ba4bc472e (diff) | |
| download | meson-cd6824aaaec9eb4fd76bfd2ab7e8410f6c571c47.tar.gz | |
dependencies: Move type_name to class level
This is really class constant for all dependencies, and by taking it out
of the initializer we make the `__init__` call have a more consistent
interface.
Diffstat (limited to 'mesonbuild/dependencies/pkgconfig.py')
| -rw-r--r-- | mesonbuild/dependencies/pkgconfig.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py index b628e005b..163f98959 100644 --- a/mesonbuild/dependencies/pkgconfig.py +++ b/mesonbuild/dependencies/pkgconfig.py @@ -306,10 +306,12 @@ class PkgConfigCLI(PkgConfigInterface): class PkgConfigDependency(ExternalDependency): + type_name = DependencyTypeName('pkgconfig') + def __init__(self, name: str, environment: Environment, kwargs: DependencyObjectKWs, language: T.Optional[str] = None, extra_paths: T.Optional[T.List[str]] = None) -> None: - super().__init__(DependencyTypeName('pkgconfig'), environment, kwargs, language=language) + super().__init__(environment, kwargs, language=language) self.name = name self.is_libtool = False self.extra_paths = extra_paths or [] |
