def find_wheels_on_path()

in xar/finders.py [0:0]


def find_wheels_on_path(importer, path_item, only=False):
    if only or not os.path.isdir(path_item) or not os.access(path_item, os.R_OK):
        return
    for entry in os.listdir(path_item):
        if py_util.Wheel.is_wheel_archive(entry):
            location = os.path.join(path_item, entry)
            for dist in pkg_resources.find_distributions(location):
                yield dist