More eagerly cleanup the requirement
@@ -246,11 +246,12 @@ class Resolver(object):
return []
req_to_install.prepared = True
- abstract_dist = self._get_abstract_dist_for(req_to_install)
# register tmp src for cleanup in case something goes wrong
requirement_set.reqs_to_cleanup.append(req_to_install)
+ abstract_dist = self._get_abstract_dist_for(req_to_install)
+
# Parse and return dependencies
dist = abstract_dist.dist(self.finder)
try:
