Commit 25a0f673 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract variable for clarity.

parent 96efb0e6
...@@ -280,10 +280,12 @@ class Distribution(_Distribution): ...@@ -280,10 +280,12 @@ class Distribution(_Distribution):
def fetch_build_eggs(self, requires): def fetch_build_eggs(self, requires):
"""Resolve pre-setup requirements""" """Resolve pre-setup requirements"""
for dist in pkg_resources.working_set.resolve( resolved_dists = pkg_resources.working_set.resolve(
pkg_resources.parse_requirements(requires), installer=self.fetch_build_egg, pkg_resources.parse_requirements(requires),
replace_conflicting=True installer=self.fetch_build_egg,
): replace_conflicting=True,
)
for dist in resolved_dists:
pkg_resources.working_set.add(dist, replace=True) pkg_resources.working_set.add(dist, replace=True)
def finalize_options(self): def finalize_options(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment