parameters: (self, dist)
docstring: Add a distribution to the finder. This will update internal information
          about who provides what.
          :param dist: The distribution to add.
docstring_summary: Add a distribution to the finder. This will update internal information
          about who provides what.
          :param dist: The distribution to add.
docstring_tokens: Add a distribution to the finder . This will update internal information about who provides what . : param dist : The distribution to add .
function: def add_distribution(self, dist):
          """
          Add a distribution to the finder. This will update internal information
          about who provides what.
          :param dist: The distribution to add.
          """
          logger.debug('adding distribution %s', dist)
          name = dist.key
          self.dists_by_name[name] = dist
          self.dists[(name, dist.version)] = dist
          for p in dist.provides:
              name, version = parse_name_and_version(p)
              logger.debug('Add to provided: %s, %s, %s', name, version, dist)
              self.provided.setdefault(name, set()).add((version, dist))
function_tokens: def add_distribution ( self , dist ) : logger . debug ( 'adding distribution %s' , dist ) name = dist . key self . dists_by_name [ name ] = dist self . dists [ ( name , dist . version ) ] = dist for p in dist . provides : name , version = parse_name_and_version ( p ) logger . debug ( 'Add to provided: %s, %s, %s' , name , version , dist ) self . provided . setdefault ( name , set ( ) ) . add ( ( version , dist ) )