minor bug fix

This commit is contained in:
Gregory Becker 2016-01-05 16:23:32 -08:00
parent 48b9023de4
commit d6768cf921

View File

@ -284,8 +284,7 @@ def find_in_modules(cls):
modulecmd.add_default_arg('python')
output = modulecmd('avail', return_oe=True)
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:
v = version
comp = cls(spack.spec.CompilerSpec(name + '@' + v),