diff --git a/Custom_EasyBlocks/suitesparse.py b/Custom_EasyBlocks/suitesparse.py
index db700f720ebe52671e884e7006d04c64ee24356c..1318aa2a2ed4dd21cfda9674c5687a0b8ca149ed 100644
--- a/Custom_EasyBlocks/suitesparse.py
+++ b/Custom_EasyBlocks/suitesparse.py
@@ -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
diff --git a/Custom_Hooks/eb_hooks.py b/Custom_Hooks/eb_hooks.py
index 6b19ff7cf5bbd09cacb879c44bd6c69aa044f4ba..e4346aa4db289d39c40661b6aa592fc9504561a6 100644
--- a/Custom_Hooks/eb_hooks.py
+++ b/Custom_Hooks/eb_hooks.py
@@ -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]