@@ -220,6 +220,19 @@ def parse_hook_fontconfig_add_fonts(ec, eprefix):
220
220
raise EasyBuildError ("fontconfig-specific hook triggered for non-fontconfig easyconfig?!" )
221
221
222
222
223
+ def parse_hook_grpcio_zlib (ec , ecprefix ):
224
+ """Adjust preinstallopts to use ZLIB from compat layer."""
225
+ if ec .name == 'grpcio' and ec .version in ['1.57.0' ]:
226
+ exts_list = ec ['exts_list' ]
227
+ original_preinstallopts = (exts_list [0 ][2 ])['preinstallopts' ]
228
+ original_option = "GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True"
229
+ new_option = "GRPC_PYTHON_BUILD_SYSTEM_ZLIB=False"
230
+ (exts_list [0 ][2 ])['preinstallopts' ] = original_preinstallopts .replace (original_option , new_option , 1 )
231
+ print_msg ("Modified the easyconfig to use compat ZLIB with GRPC_PYTHON_BUILD_SYSTEM_ZLIB=False" )
232
+ else :
233
+ raise EasyBuildError ("grpcio-specific hook triggered for a non-grpcio easyconfig?!" )
234
+
235
+
223
236
def parse_hook_openblas_relax_lapack_tests_num_errors (ec , eprefix ):
224
237
"""Relax number of failing numerical LAPACK tests for aarch64/neoverse_v1 CPU target for OpenBLAS < 0.3.23"""
225
238
cpu_target = get_eessi_envvar ('EESSI_SOFTWARE_SUBDIR' )
@@ -743,6 +756,7 @@ def inject_gpu_property(ec):
743
756
'casacore' : parse_hook_casacore_disable_vectorize ,
744
757
'CGAL' : parse_hook_cgal_toolchainopts_precise ,
745
758
'fontconfig' : parse_hook_fontconfig_add_fonts ,
759
+ 'grpcio' : parse_hook_grpcio_zlib ,
746
760
'LAMMPS' : parse_hook_lammps_remove_deps_for_CI_aarch64 ,
747
761
'CP2K' : parse_hook_CP2K_remove_deps_for_aarch64 ,
748
762
'OpenBLAS' : parse_hook_openblas_relax_lapack_tests_num_errors ,
0 commit comments