Skip to content
Snippets Groups Projects
Commit 0d715d61 authored by Damian Alvarez's avatar Damian Alvarez
Browse files

Merge branch '2022-fix-hook' into '2022'

To have proper string comparisons. Otherwise PyCUDA was tweaked,

See merge request hps-public/easybuild-repository!1168
parents a3afb4d0 313e09ca
Branches
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ class EB_SuiteSparse(ConfigureMake):
for (var, val) in list(cfgvars.items()):
# Let's overwrite NVCCFLAGS at the end, since the line breaks and the fact that it appears multiple
# times makes it tricky to handle it properly
if var is not'NVCCFLAGS':
if var != 'NVCCFLAGS':
orig_line = line
# for variables in cfgvars, substiture lines assignment
# in the file, whatever they are, by assignments to the
......
......@@ -267,7 +267,7 @@ def tweak_dependencies(ec):
for dep_to_tweak in TWEAKABLE_DEPENDENCIES:
for dep in dependencies:
remove = False
if dep_to_tweak in dep[0]:
if dep_to_tweak == dep[0]:
list_dep = list(dep)
if isinstance(TWEAKABLE_DEPENDENCIES[dep_to_tweak], str):
list_dep[1] = TWEAKABLE_DEPENDENCIES[dep_to_tweak]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment