Skip to content

Commit 85ab574

Browse files
committed
Remove unused RequirementSet.reqs_to_cleanup
1 parent 4a93045 commit 85ab574

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/pip/_internal/legacy_resolve.py

-3
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,6 @@ def _resolve_one(
327327

328328
req_to_install.prepared = True
329329

330-
# register tmp src for cleanup in case something goes wrong
331-
requirement_set.reqs_to_cleanup.append(req_to_install)
332-
333330
abstract_dist = self._get_abstract_dist_for(req_to_install)
334331

335332
# Parse and return dependencies

src/pip/_internal/req/req_set.py

-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def __init__(self, check_supported_wheels=True):
3333

3434
self.unnamed_requirements = [] # type: List[InstallRequirement]
3535
self.successfully_downloaded = [] # type: List[InstallRequirement]
36-
self.reqs_to_cleanup = [] # type: List[InstallRequirement]
3736

3837
def __str__(self):
3938
# type: () -> str
@@ -161,7 +160,6 @@ def add_requirement(
161160
)
162161
)
163162
if does_not_satisfy_constraint:
164-
self.reqs_to_cleanup.append(install_req)
165163
raise InstallationError(
166164
"Could not satisfy constraints for '{}': "
167165
"installation from path or url cannot be "

0 commit comments

Comments
 (0)