Skip to content

Commit

Permalink
Merge pull request #4711 from pradyunsg/refactor/req-set-reduction-1
Browse files Browse the repository at this point in the history
Get rid of successfully_installed attr
  • Loading branch information
dstufft committed Sep 7, 2017
2 parents 28cca11 + 1240a81 commit 4b5a0d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/pip/_internal/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def run(self, options, args):
# installed from the sdist/vcs whatever.
wb.build(session=session, autobuilding=True)

requirement_set.install(
installed = requirement_set.install(
install_options,
global_options,
root=options.root_path,
Expand All @@ -305,9 +305,7 @@ def run(self, options, args):
prefix=options.prefix_path,
isolated=options.isolated_mode,
)
reqs = sorted(
requirement_set.successfully_installed,
key=operator.attrgetter('name'))
reqs = sorted(installed, key=operator.attrgetter('name'))
items = []
for req in reqs:
item = req.name
Expand Down
3 changes: 1 addition & 2 deletions src/pip/_internal/req/req_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def __init__(self,
self.requirement_aliases = {}
self.unnamed_requirements = []
self.successfully_downloaded = []
self.successfully_installed = []
self.reqs_to_cleanup = []
self.use_user_site = use_user_site
self.target_dir = target_dir # set from --target option
Expand Down Expand Up @@ -243,4 +242,4 @@ def install(self, install_options, global_options=(), *args, **kwargs):
requirement.uninstalled_pathset.commit()
requirement.remove_temporary_source()

self.successfully_installed = to_install
return to_install

0 comments on commit 4b5a0d5

Please sign in to comment.