diff options
author | Mario Melara <maamelara@gmail.com> | 2016-01-20 10:32:56 -0800 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-01-20 10:32:56 -0800 |
commit | 15713219e57a97048f4e3b085f9c75e188a67787 (patch) | |
tree | f853ed607ce6002c8c319fc587ef17775a19b4d8 /lib | |
parent | aab1a67d056bf9f0979f2cebfff607d05ac8b7e9 (diff) | |
download | spack-15713219e57a97048f4e3b085f9c75e188a67787.tar.gz spack-15713219e57a97048f4e3b085f9c75e188a67787.tar.bz2 spack-15713219e57a97048f4e3b085f9c75e188a67787.tar.xz spack-15713219e57a97048f4e3b085f9c75e188a67787.zip |
Better regular expression searching. Tested on edison was finding test compilers and then spack was giving multiple compiler match errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py index 225c65917a..1a5be3c3fe 100644 --- a/lib/spack/spack/compiler.py +++ b/lib/spack/spack/compiler.py @@ -283,7 +283,7 @@ class Compiler(object): modulecmd = which('modulecmd') modulecmd.add_default_arg('python') 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: v = version |