Better regular expression searching. Tested on edison was finding test compilers and then spack was giving multiple compiler match errors
This commit is contained in:
parent
aab1a67d05
commit
15713219e5
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,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', cls.PrgEnv_compiler, 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:
|
||||||
v = version
|
v = version
|
||||||
|
|
Loading…
Reference in a new issue