(dist)
return normalize_path(
        dist_location(dist)
    ).startswith(normalize_path(site_packages))
Return True if given Distribution is installed in
    sysconfig.get_python_lib().
Return True if given Distribution is installed in
    sysconfig.get_python_lib().
Return True if given Distribution is installed in sysconfig . get_python_lib () .
def dist_in_site_packages(dist):
    # type: (Distribution) -> bool
    """
    Return True if given Distribution is installed in
    sysconfig.get_python_lib().
    """
    return normalize_path(
        dist_location(dist)
    ).startswith(normalize_path(site_packages))
def dist_in_site_packages ( dist ) : # type: (Distribution) -> bool return normalize_path ( dist_location ( dist ) ) . startswith ( normalize_path ( site_packages ) )