Skip to content

Commit 1afc1c0

Browse files
author
Patrik Kopkan
committed
fixed not writting all wheel filenames
1 parent 0ea6079 commit 1afc1c0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/pip/_internal/commands/wheel.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,15 @@ def run(self, options, args):
188188
)
189189
if wb.path_to_wheelnames is not None:
190190
if len(wb.wheel_filenames) != 0:
191+
entries_to_save = wb.wheel_filenames[::]
192+
for req in requirement_set.requirements.values():
193+
if req.link.filename.endswith('whl'):
194+
entries_to_save.append(req.link.filename)
195+
191196
with open(wb.path_to_wheelnames, 'w') as file:
192197
file.write(
193198
os.linesep.join(
194-
wb.wheel_filenames
199+
entries_to_save
195200
) + os.linesep
196201
)
197202

src/pip/_internal/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def __init__(
852852
build_options=None, # type: Optional[List[str]]
853853
global_options=None, # type: Optional[List[str]]
854854
no_clean=False, # type: bool
855-
path_to_wheelnames=None # Optional[str]
855+
path_to_wheelnames=None # type: Optional[str]
856856
):
857857
# type: (...) -> None
858858
self.finder = finder

0 commit comments

Comments
 (0)