From 2dfd952eb99590878430510644ffe99dd4a6a41d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 13 Sep 2022 09:38:19 -0400 Subject: Move classes used by scripts to their own module Those classes are used by wrapper scripts and we should not have to import the rest of mesonlib, build.py, and all their dependencies for that. This renames mesonlib/ directory to utils/ and add a mesonlib.py module that imports everything from utils/ to not have to change `import mesonlib` everywhere. It allows to import utils.core without importing the rest of mesonlib. --- run_mypy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'run_mypy.py') diff --git a/run_mypy.py b/run_mypy.py index a70366963..6fd0453da 100755 --- a/run_mypy.py +++ b/run_mypy.py @@ -33,8 +33,8 @@ modules = [ 'mesonbuild/interpreter/type_checking.py', 'mesonbuild/mcompile.py', 'mesonbuild/mdevenv.py', - 'mesonbuild/mesonlib/platform.py', - 'mesonbuild/mesonlib/universal.py', + 'mesonbuild/utils/platform.py', + 'mesonbuild/utils/universal.py', 'mesonbuild/minit.py', 'mesonbuild/minstall.py', 'mesonbuild/mintro.py', @@ -69,9 +69,9 @@ modules = [ ] if os.name == 'posix': - modules.append('mesonbuild/mesonlib/posix.py') + modules.append('mesonbuild/utils/posix.py') elif os.name == 'nt': - modules.append('mesonbuild/mesonlib/win32.py') + modules.append('mesonbuild/utils/win32.py') def check_mypy() -> None: try: -- cgit v1.2.3