Commit d9ab31a9 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Fix Python 2 incompatibility

Hopefully not for long anymore..
parent 77fc0c2c
Pipeline #67014 passed with stage
in 12 seconds
......@@ -295,7 +295,8 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False, filter_r
default_cudas = try_get_attribute(None, "default_cuda")
def sort_key(string):
name, *version = string.split("_")
name, version = string.split("_", 1)
version = version.split("_")
return (name,) + tuple(map(int, version))
latest_intel = sorted((c for c in all_compilers if c.startswith("intel")), key=sort_key)[-1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment