diff --git a/pip/req/req_set.py b/pip/req/req_set.py index d601c17a661..5897476c7b2 100644 --- a/pip/req/req_set.py +++ b/pip/req/req_set.py @@ -671,6 +671,5 @@ def install(self, install_options, global_options=(), *args, **kwargs): if (requirement.conflicts_with and requirement.install_succeeded): requirement.commit_uninstall() - requirement.remove_temporary_source() self.successfully_installed = to_install diff --git a/tests/functional/test_install_cleanup.py b/tests/functional/test_install_cleanup.py index 49fc5a0abe5..3de8a953268 100644 --- a/tests/functional/test_install_cleanup.py +++ b/tests/functional/test_install_cleanup.py @@ -32,7 +32,7 @@ def test_no_clean_option_blocks_cleaning_after_install(script, data): 'install', '--no-clean', '--no-index', '--build', build, '--find-links=%s' % data.find_links, 'simple', ) - assert exists(build) + assert exists(build / 'simple' / 'setup.py') @pytest.mark.network