Hello,
I would like to add the spack external find visit feature.
Typically I would set
executables = ['^xml2cmake$']
@classmethod
def determine_version(cls, exe):
output = Executable(exe)('--version', output=str, error=str)
match = re.search(r'xml2cmake\s*([\d\.]+)', output)
return match.group(1) if match else None
but this detects only the latest version per base of visit.
For instance, let visit be installed on /opt, with the following versions :
$ ls /opt/visit/
2.12.3 2.8.2 3.0.2 3.1.1 3.1.3 3.1.4 3.2.0 bin current data
The last version is 3.2.0, but there are also 3.1.4, ..., 2.8.2
So, is there a way to return a list of versions per exe ?
Thanks,
Olivier Cessenat