Skip to content

Commit 158ae67

Browse files
committed
Remove unused _wheel_dir in WheelBuilder
1 parent 9909b40 commit 158ae67

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/pip/_internal/wheel_builder.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,6 @@ def __init__(
319319
self.preparer = preparer
320320
self.wheel_cache = wheel_cache
321321

322-
self._wheel_dir = preparer.wheel_download_dir
323-
324322
self.build_options = build_options or []
325323
self.global_options = global_options or []
326324
self.check_binary_allowed = check_binary_allowed
@@ -422,15 +420,6 @@ def build(
422420
for installation.
423421
:return: The list of InstallRequirement that failed to build.
424422
"""
425-
# pip install uses should_unpack=True.
426-
# pip install never provides a _wheel_dir.
427-
# pip wheel uses should_unpack=False.
428-
# pip wheel always provides a _wheel_dir (via the preparer).
429-
assert (
430-
(should_unpack and not self._wheel_dir) or
431-
(not should_unpack and self._wheel_dir)
432-
)
433-
434423
buildset = _collect_buildset(
435424
requirements,
436425
wheel_cache=self.wheel_cache,

0 commit comments

Comments
 (0)