aboutsummaryrefslogtreecommitdiff
path: root/run_mypy.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-09-13 09:38:19 -0400
committerEli Schwartz <eschwartz93@gmail.com>2022-09-28 19:36:13 -0400
commit2dfd952eb99590878430510644ffe99dd4a6a41d (patch)
tree53001a096d997511a8d12a44cf5019a2ff8d5a2b /run_mypy.py
parenta58ec322b3a9a07af83ea268341c16f972f52791 (diff)
downloadmeson-2dfd952eb99590878430510644ffe99dd4a6a41d.zip
meson-2dfd952eb99590878430510644ffe99dd4a6a41d.tar.gz
meson-2dfd952eb99590878430510644ffe99dd4a6a41d.tar.bz2
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.
Diffstat (limited to 'run_mypy.py')
-rwxr-xr-xrun_mypy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/run_mypy.py b/run_mypy.py
index a703669..6fd0453 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: