11# Hooks to customize how EasyBuild installs software in EESSI
22# see https://docs.easybuild.io/en/latest/Hooks.html
3- # DUMMY CHANGE, DONT MERGE
43import ast
54import datetime
65import glob
@@ -152,7 +151,7 @@ def parse_list_of_dicts_env(var_name):
152151 if not re .match (r'^[A-Za-z_][A-Za-z0-9_]*$' , var_name ):
153152 raise ValueError (f"Invalid environment variable name: { var_name } " )
154153 list_string = os .getenv (var_name , '[]' )
155-
154+
156155 list_of_dicts = []
157156 try :
158157 # Try JSON format first
@@ -163,7 +162,7 @@ def parse_list_of_dicts_env(var_name):
163162 list_of_dicts = ast .literal_eval (list_string )
164163 except (ValueError , SyntaxError ):
165164 raise ValueError (f"Environment variable '{ var_name } ' does not contain a valid list of dictionaries." )
166-
165+
167166 return list_of_dicts
168167
169168
@@ -212,7 +211,7 @@ def post_ready_hook(self, *args, **kwargs):
212211 parallel = self .parallel
213212 else :
214213 parallel = self .cfg ['parallel' ]
215-
214+
216215 if parallel == 1 :
217216 return # no need to limit if already using 1 core
218217
@@ -734,7 +733,7 @@ def pre_configure_hook_score_p(self, *args, **kwargs):
734733def pre_configure_hook_vsearch (self , * args , ** kwargs ):
735734 """
736735 Pre-configure hook for VSEARCH
737- - Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
736+ - Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
738737 (solves "expected initializer before 'OF'" errors)
739738 """
740739 if self .name == 'VSEARCH' :
0 commit comments