the only difference is that `calc_libraries_info` does not stop on the first found library. Maybe that is safer.