fixed compiler finding so as not to identify non-existent versions of the intel compiler based on the version numbers of the PrgEnv-intel module

This commit is contained in:
Gregory Becker 2016-01-05 17:14:35 -08:00
parent c649610473
commit 29e0ff61d7

View file

@ -282,7 +282,7 @@ def find_in_modules(cls):
modulecmd = which('modulecmd') modulecmd = which('modulecmd')
modulecmd.add_default_arg('python') modulecmd.add_default_arg('python')
output = modulecmd('avail', return_oe=True) output = modulecmd('avail', cls.PrgEnv_compiler, return_oe=True)
matches = re.findall(r'(%s)/(\d+[\.\d]+)' % cls.PrgEnv_compiler, output) matches = re.findall(r'(%s)/(\d+[\.\d]+)' % cls.PrgEnv_compiler, output)
for name, version in matches: for name, version in matches: