diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-17 18:19:59 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-06-26 13:10:33 -0400 |
commit | b1ddfabf8fbb0561a584bd7cfe2bb712b4105da2 (patch) | |
tree | 6cd7047a090608705215608940af3f7a03ee2442 /run_project_tests.py | |
parent | c82305db0c5216f821e43bfc7ea3c8e314d0dccd (diff) | |
download | meson-b1ddfabf8fbb0561a584bd7cfe2bb712b4105da2.zip meson-b1ddfabf8fbb0561a584bd7cfe2bb712b4105da2.tar.gz meson-b1ddfabf8fbb0561a584bd7cfe2bb712b4105da2.tar.bz2 |
dependencies: defer importing a custom dependency until it is used
This lessens the amount of code imported at Meson startup by mapping
each dependency to a dictionary entry and using a programmable import to
dynamically return it.
Minus 16 files and 6399 lines of code imported at startup.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index bf88608..facf1e9 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -540,7 +540,7 @@ def validate_output(test: TestDef, stdo: str, stde: str) -> str: # coded to run as a batch process. def clear_internal_caches() -> None: import mesonbuild.interpreterbase - from mesonbuild.dependencies import CMakeDependency + from mesonbuild.dependencies.cmake import CMakeDependency from mesonbuild.mesonlib import PerMachine mesonbuild.interpreterbase.FeatureNew.feature_registry = {} CMakeDependency.class_cmakeinfo = PerMachine(None, None) |