intel-oneapi-mpi: strip @ from IMPI_OFFICIALVERSION

This commit is contained in:
Wouter Deconinck 2024-11-18 14:09:02 -06:00 committed by GitHub
parent d92cea0a07
commit 29554e8446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,7 +146,8 @@ class IntelOneapiMpi(IntelOneApiLibraryPackage):
def determine_version(cls, exe):
output = Executable(exe)("-v", output=str, error=str)
match = re.search(cls.version_regex, output)
return match.group(1) if match else None
# strip @ from unsubstituted @IMPI_OFFICIALVERSION@
return match.group(1).strip("@") if match else None
@property
def mpiexec(self):