From d7de5bb9a0e26651a87e2857a0c231aadb6f2e96 Mon Sep 17 00:00:00 2001 From: Florian Wechsung Date: Thu, 27 Aug 2020 10:13:04 -0400 Subject: [PATCH] icc --version gives a version of the form a.b.c.d, which python doesn't like (too long) --- pyop2/compilation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyop2/compilation.py b/pyop2/compilation.py index cba1d8f1f..e5a9fefdd 100644 --- a/pyop2/compilation.py +++ b/pyop2/compilation.py @@ -81,7 +81,7 @@ def sniff_compiler_version(cc): compiler = "unknown" ver = version.LooseVersion("unknown") - if compiler in ["gcc", "icc"]: + if compiler == "gcc": try: ver = subprocess.check_output([cc, "-dumpversion"], stderr=subprocess.DEVNULL).decode("utf-8")