From bbcc91c1e5a904639633a5797d635852a0f77971 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 15 Jun 2021 21:45:45 -0400 Subject: expose SystemDependency and BuiltinDependency as toplevel classes mesonbuild.dependencies.__init__ exposes configtool, pkgconfig, cmake and more in __init__.py, so there's no reason we should be tying SystemDependency to the internal organization implementation of the subpackage! In the 2nd previous commit it took quite some effort to figure out that the python module "does not exist" because of import errors while refactoring something completely different. --- mesonbuild/modules/python.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mesonbuild/modules/python.py') diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index f1095031f..f3bcfabe5 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -30,8 +30,7 @@ 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, PkgConfigDependency, NotFoundDependency -from ..dependencies.base import SystemDependency +from ..dependencies import DependencyMethods, PkgConfigDependency, NotFoundDependency, SystemDependency from ..programs import ExternalProgram, NonExistingExternalProgram mod_kwargs = {'subdir'} -- cgit v1.2.3