def get_bin_version(bin_path, version_flag='-v', kw={}):
    """
    Get the version string through the binary and return a tuple of
    integers.
    """

    version_str = get_bin_version_str(bin_path, version_flag, kw)
    if version_str:
        return tuple(int(i) for i in version_str.split('.'))
Get the version string through the binary and return a tuple of
    integers.