Hi Costas
I'm not fully sure I could help you with you own configuration...
Nevertheless I compiled Telemac API on my windows laptop (W10 with gcc 4.8 and python 3.6) but only in manual mode...
After the automatic compilation, I manually run the 2 f2py command line for both api and hermes...
As the command line are directly linked to your configuration, I advise you to proceed as I do. In the script compil_tools.py, remove the --quiet option of f2py line and also print the command line.
On my computer I also noticed I have to place a copy of vcruntime140.dll in the directory wrap_api\lib
As an example of the command line I enclosed the one I have for my computer in V8P1
f2py.py -h c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\lib\api.pyf -m _api c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_handle_var_t3d.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_handle_var_t2d.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_handle_var_sis.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_handle_var_art.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_handle_var_wac.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_handle_error.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\api_interface.f90 skip: get_boolean_t2d_d get_double_t2d_d get_integer_t2d_d get_string_t2d_d get_var_size_t2d_d set_boolean_t2d_d set_double_t2d_d set_integer_t2d_d set_string_t2d_d get_double_array_t2d_d get_integer_array_t2d_d set_double_array_t2d_d set_integer_array_t2d_d get_boolean_sis_d get_double_sis_d get_integer_sis_d get_string_sis_d get_var_size_sis_d set_boolean_sis_d set_double_sis_d set_integer_sis_d set_string_sis_d get_double_array_sis_d get_integer_array_sis_d set_double_array_sis_d set_integer_array_sis_d get_boolean_t3d_d get_double_t3d_d get_integer_t3d_d get_string_t3d_d get_var_size_t3d_d set_boolean_t3d_d set_double_t3d_d set_integer_t3d_d set_string_t3d_d get_double_array_t3d_d get_integer_array_t3d_d set_double_array_t3d_d set_integer_array_t3d_d get_boolean_art_d get_double_art_d get_integer_art_d get_string_art_d get_var_size_art_d set_boolean_art_d set_double_art_d set_integer_art_d set_string_art_d get_double_array_art_d get_integer_array_art_d set_double_array_art_d set_integer_array_art_d get_boolean_wac_d get_double_wac_d get_integer_wac_d get_string_wac_d get_var_size_wac_d set_boolean_wac_d set_double_wac_d set_integer_wac_d set_string_wac_d get_double_array_wac_d get_integer_array_wac_d set_double_array_wac_d set_integer_array_wac_d :
f2py.py -c api.pyf --compiler=mingw32 --fcompiler=gfortran --opt="" -Ic:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\include -Lc:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\lib -lapi -ltelemac3d -ltelemac2d -lsisyphe -lgaia -lnestor -ltomawac -lartemis -lkhione -lwaqtel -lgretel -lpartel -lbief -lparallel -lhermes -ldamocles -lspecial
f2py.py -h c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\lib\hermes.pyf -m _hermes c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\close_bnd.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\close_mesh.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_connectivity.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_ipobo.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_nelem.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_npoin.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_numbering.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_value.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_bnd_color.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_data_ntimestep.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_data_nvar.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_data_time.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_data_value.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_data_var_list2.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_connectivity.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_coord.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_date.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_dimension.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_l2g_numbering.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_nelem.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_nplan.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_npoin.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_npoin_per_element.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_nptir.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_mesh_title.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\open_bnd.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\open_mesh.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\set_bnd.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\set_mesh.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\set_header.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\add_data.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\transfer_group_info.f90 c:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\src\get_error_message.f90
f2py.py -c hermes.pyf --compiler=mingw32 --fcompiler=gfortran --opt="" -Ic:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\include -Lc:\opentelemac-mascaret\v8p1\builds\wingforsapi\wrap_api\lib -lapi -ltelemac3d -ltelemac2d -lsisyphe -lgaia -lnestor -ltomawac -lartemis -lkhione -lwaqtel -lgretel -lpartel -lbief -lparallel -lhermes -ldamocles -lspecial
Hope this could help you to solve your problem...
Regards