def add_distribution(self, dist):
logger.debug('<STR_LIT>', dist)<EOL>name = dist.key<EOL>self.dists_by_name[name] = dist<EOL>self.dists[(name, dist.version)] = dist<EOL>for p in dist.provides:<EOL><INDENT>name, version = parse_name_and_version(p)<EOL>logger.debug('<STR_LIT>', name, version, dist)<EOL>self.provided.setdefault(name, set()).add((version, dist))<EOL><DEDENT>
Add a distribution to the finder. This will update internal information
about who provides what.
:param dist: The distribution to add.