minor bug fix
This commit is contained in:
parent
48b9023de4
commit
d6768cf921
@ -284,8 +284,7 @@ def find_in_modules(cls):
|
|||||||
modulecmd.add_default_arg('python')
|
modulecmd.add_default_arg('python')
|
||||||
output = modulecmd('avail', return_oe=True)
|
output = modulecmd('avail', 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)
|
||||||
# It's finding a weird third attribute
|
|
||||||
print matches
|
|
||||||
for name, version in matches:
|
for name, version in matches:
|
||||||
v = version
|
v = version
|
||||||
comp = cls(spack.spec.CompilerSpec(name + '@' + v),
|
comp = cls(spack.spec.CompilerSpec(name + '@' + v),
|
||||||
|
Loading…
Reference in New Issue
Block a user