diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-01-13 10:11:00 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-01-29 09:11:24 -0800 |
commit | 5ab29e264bee6cfd180693fb22c0f335dda2f75c (patch) | |
tree | b37aebaeb6b5bc6ae183437c19c0bf5b418e6368 /mesonbuild/dependencies/base.py | |
parent | 6440b55b07ae89753c6b41f5a525951cf785b138 (diff) | |
download | meson-5ab29e264bee6cfd180693fb22c0f335dda2f75c.zip meson-5ab29e264bee6cfd180693fb22c0f335dda2f75c.tar.gz meson-5ab29e264bee6cfd180693fb22c0f335dda2f75c.tar.bz2 |
dependencies: Rename _add_sub_dependency2 to _add_sub_dependency
Since the original _add_sub_dependency is no longer in use.
Diffstat (limited to 'mesonbuild/dependencies/base.py')
-rw-r--r-- | mesonbuild/dependencies/base.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 0a2ba9a..d89c00a 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -180,7 +180,7 @@ class Dependency: """ raise RuntimeError('Unreachable code in partial_dependency called') - def _add_sub_dependency2(self, deplist: T.List['DependencyType']) -> bool: + def _add_sub_dependency(self, deplist: T.List['DependencyType']) -> bool: """Add an internal depdency from a list of possible dependencies. This method is intended to make it easier to add additional @@ -196,20 +196,6 @@ class Dependency: return True return False - def _add_sub_dependency(self, dep_type: T.Type['Dependency'], name: str, - env: Environment, kwargs: T.Dict[str, T.Any], *, - method: DependencyMethods = DependencyMethods.AUTO) -> None: - """Add an internal dependency of of the given type. - - This method is intended to simplify cases of adding a dependency on - another dependency type (such as threads). This will by default set - the method back to auto, but the 'method' keyword argument can be - used to overwrite this behavior. - """ - kwargs = kwargs.copy() - kwargs['method'] = method - self.ext_deps.append(dep_type(name, env, kwargs)) - def get_variable(self, *, cmake: T.Optional[str] = None, pkgconfig: T.Optional[str] = None, configtool: T.Optional[str] = None, internal: T.Optional[str] = None, default_value: T.Optional[str] = None, |