aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/scalapack.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-01-29 13:48:22 -0500
committerEli Schwartz <eschwartz@archlinux.org>2023-06-26 13:10:33 -0400
commitb8b2d87567af8e7f556e290c3585e7ac462679b6 (patch)
tree8ee2b80546ceecccc5446ed8d89694778ae91c37 /mesonbuild/dependencies/scalapack.py
parentb1ddfabf8fbb0561a584bd7cfe2bb712b4105da2 (diff)
downloadmeson-b8b2d87567af8e7f556e290c3585e7ac462679b6.zip
meson-b8b2d87567af8e7f556e290c3585e7ac462679b6.tar.gz
meson-b8b2d87567af8e7f556e290c3585e7ac462679b6.tar.bz2
dependencies: switch the delayed-import mechanism for custom dependencies
Simply store the module it is expected to be found in. That module then appends to the packages dict, which guarantees mypy can verify that it's got the right type -- there is no casting needed.
Diffstat (limited to 'mesonbuild/dependencies/scalapack.py')
-rw-r--r--mesonbuild/dependencies/scalapack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/scalapack.py b/mesonbuild/dependencies/scalapack.py
index be8ee70..257e4aa 100644
--- a/mesonbuild/dependencies/scalapack.py
+++ b/mesonbuild/dependencies/scalapack.py
@@ -22,6 +22,7 @@ from ..mesonlib import OptionKey
from .base import DependencyMethods
from .base import DependencyException
from .cmake import CMakeDependency
+from .detect import packages
from .pkgconfig import PkgConfigDependency
from .factory import factory_methods
@@ -52,6 +53,8 @@ def scalapack_factory(env: 'Environment', for_machine: 'MachineChoice',
return candidates
+packages['scalapack'] = scalapack_factory
+
class MKLPkgConfigDependency(PkgConfigDependency):