Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
d9ab31a9
Commit
d9ab31a9
authored
Oct 23, 2019
by
Lorenz Huedepohl
Browse files
Fix Python 2 incompatibility
Hopefully not for long anymore..
parent
77fc0c2c
Pipeline
#67014
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
d9ab31a9
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment