More eagerly cleanup the requirement

This commit is contained in:
xoviat 2018-01-26 11:02:41 -06:00
parent 615de6a571
commit 08bec25c56
1 changed files with 2 additions and 1 deletions

View File

@ -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: