aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/mpi.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-06-07 20:56:27 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-06-09 09:46:37 +0200
commit2263a84d0796ffe93c3dc33502dc13412fbd4afe (patch)
tree6bb428477e7a0d25cffb96fddbc53f3ce94d7513 /mesonbuild/dependencies/mpi.py
parenta8cd45d3ab2c84f15b7f4bdc3fee3dbac4eaa3ba (diff)
downloadmeson-2263a84d0796ffe93c3dc33502dc13412fbd4afe.zip
meson-2263a84d0796ffe93c3dc33502dc13412fbd4afe.tar.gz
meson-2263a84d0796ffe93c3dc33502dc13412fbd4afe.tar.bz2
typing: Rename some variables
Diffstat (limited to 'mesonbuild/dependencies/mpi.py')
-rw-r--r--mesonbuild/dependencies/mpi.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/mesonbuild/dependencies/mpi.py b/mesonbuild/dependencies/mpi.py
index b4dd859..f0533b5 100644
--- a/mesonbuild/dependencies/mpi.py
+++ b/mesonbuild/dependencies/mpi.py
@@ -24,23 +24,22 @@ from .factory import factory_methods
from ..environment import detect_cpu_family
if T.TYPE_CHECKING:
- from .base import Dependency
- from .factory import TV_DepGenerators
- from ..compilers import Compiler
- from ..compilers.compiler import CompilerType
+ from .factory import DependencyGenerator
from ..environment import Environment, MachineChoice
@factory_methods({DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.SYSTEM})
-def mpi_factory(env: 'Environment', for_machine: 'MachineChoice',
- kwargs: T.Dict[str, T.Any], methods: T.List[DependencyMethods]) -> 'TV_DepGenerators':
+def mpi_factory(env: 'Environment',
+ for_machine: 'MachineChoice',
+ kwargs: T.Dict[str, T.Any],
+ methods: T.List[DependencyMethods]) -> T.List['DependencyGenerator']:
language = kwargs.get('language', 'c')
if language not in {'c', 'cpp', 'fortran'}:
# OpenMPI doesn't work without any other languages
return []
- candidates: 'TV_DepGenerators' = []
- compiler = detect_compiler('mpi', env, for_machine, language) # type: T.Optional['CompilerType']
+ candidates: T.List['DependencyGenerator'] = []
+ compiler = detect_compiler('mpi', env, for_machine, language)
if compiler is None:
return []
compiler_is_intel = compiler.get_id() in {'intel', 'intel-cl'}