diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-06-13 21:09:41 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-06-14 09:09:32 -0700 |
commit | 203a548d60343a97e436b59aa026ce17597f1cd1 (patch) | |
tree | e2cefbffbb111baab4b79571f588aaab61ee6721 /mesonbuild/modules/python.py | |
parent | 1fb14fd3ecb535d7173ef041b8c8ef07c9968589 (diff) | |
download | meson-203a548d60343a97e436b59aa026ce17597f1cd1.zip meson-203a548d60343a97e436b59aa026ce17597f1cd1.tar.gz meson-203a548d60343a97e436b59aa026ce17597f1cd1.tar.bz2 |
dependencies: Use the SystemDependency
This fixes these dependencies, which currently return the name of the
dependency as the type.
Fixes #8877
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r-- | mesonbuild/modules/python.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 0e3df9b..94e100b 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -30,17 +30,15 @@ from ..interpreter import ExternalProgramHolder, extract_required_kwarg, permitt from ..build import known_shmod_kwargs from .. import mlog from ..environment import detect_cpu_family -from ..dependencies import ( - DependencyMethods, ExternalDependency, - PkgConfigDependency, NotFoundDependency -) +from ..dependencies import DependencyMethods, PkgConfigDependency, NotFoundDependency +from ..dependencies.system import SystemDependency from ..programs import ExternalProgram, NonExistingExternalProgram mod_kwargs = {'subdir'} mod_kwargs.update(known_shmod_kwargs) mod_kwargs -= {'name_prefix', 'name_suffix'} -class PythonDependency(ExternalDependency): +class PythonDependency(SystemDependency): def __init__(self, python_holder, environment, kwargs): super().__init__('python', environment, kwargs) |