code: def find_wheels(projects, search_dirs):
      
  
      wheels = []
  
      # Look through SEARCH_DIRS for the first suitable wheel. Don't bother
      # about version checking here, as this is simply to get something we can
      # then use to install the correct version.
      for project in projects:
          for dirname in search_dirs:
              # This relies on only having "universal" wheels available.
              # The pattern could be tightened to require -py2.py3-none-any.whl.
              files = glob.glob(os.path.join(dirname, project + '-*.whl'))
              if files:
                  wheels.append(os.path.abspath(files[0]))
                  break
          else:
              # We're out of luck, so quit with a suitable error
              logger.fatal('Cannot find a wheel for %s' % (project,))
  
      return wheels
docs: Find wheels from which we can import PROJECTS.
  
      Scan through SEARCH_DIRS for a wheel for each PROJECT in turn. Return
      a list of the first wheel found for each PROJECT