Skip to content

Commit

Permalink
fixup! Make pip wheel cache what it built
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Nov 3, 2019
1 parent a8395f0 commit 30f2740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/6852.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Cache wheels that ``pip wheel`` built locally, matching what
``pip install`` does. This particularly helps performance in workflows where
``pip wheel`` is used for `building before installing
<https://pip.pypa.io/en/stable/user_guide/#installing-from-local-packages>`_.
Users desiring the original behavior can use ``pip wheel --no-cache-dir``.
2 changes: 1 addition & 1 deletion src/pip/_internal/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,6 @@ def build(
python_tag=python_tag,
)
if wheel_file:
build_success.append(req)
self.wheel_filenames.append(
os.path.relpath(wheel_file, output_dir)
)
Expand Down Expand Up @@ -1213,6 +1212,7 @@ def build(
)
build_failure.append(req)
continue
build_success.append(req)
else:
build_failure.append(req)

Expand Down

0 comments on commit 30f2740

Please sign in to comment.