Skip to content

Remove unnecessary InstallRequirement cleanup in install_given_reqs #7516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 28, 2019

Conversation

chrahunt
Copy link
Member

@chrahunt chrahunt commented Dec 26, 2019

InstallCommand.run:

so a call to InstallRequirement.remove_temporary_source in install_given_reqs is not necessary and has been removed.

We have test coverage affirming this still works as expected in tests/functional/test_install_cleanup.py.

Progresses #2779.

install_given_reqs is only called from InstallCommand.run, which calls
RequirementSet.cleanup_files, which calls
InstallRequirement.remove_temporary_source for each InstallRequirement,
so the call here was not necessary.

We have test coverage affirming this still works as expected in
tests/functional/test_install_cleanup.py.
@chrahunt chrahunt added skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code labels Dec 26, 2019
@chrahunt chrahunt marked this pull request as ready for review December 26, 2019 20:32
@pradyunsg pradyunsg merged commit d4b5392 into pypa:master Dec 28, 2019
@chrahunt chrahunt deleted the refactor/remove-unnecessary-cleanup branch December 28, 2019 13:33
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jan 27, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants