def dist_in_site_packages(dist):
 return normalize_path(dist_location(dist)).startswith(normalize_path(site_packages))

def dist_in_site_packages ( dist ) : return normalize_path ( dist_location ( dist ) ) . startswith ( normalize_path ( site_packages ) )
return true if given distribution is installed in distutils .