def _simulate_installation_of(to_install, package_set):<EOL>
<EOL>installed = set()<EOL>for inst_req in to_install:<EOL><INDENT>dist = make_abstract_dist(inst_req).dist()<EOL>name = canonicalize_name(dist.key)<EOL>package_set[name] = PackageDetails(dist.version, dist.requires())<EOL>installed.add(name)<EOL><DEDENT>return installed<EOL>
Computes the version of packages after installing to_install.