pip wheel/install with non-writable cache fails despite warning the cache has been disabled #7488
Labels
auto-locked
Outdated issues that have been locked by automation
C: cache
Dealing with cache and files in it
type: bug
A confirmed bug or unintended behavior
Coming from #7484
Environment
Description
Running pip install and pip wheel with a non-writable cache directory leads to an install error, despite pip warning that the cache is disabled due to a permission or ownership issue.
Expected behavior
Installation or build should succeed with a warning that the cache is disabled.
How to Reproduce: pip install
Output
pip wheel
behaves similarly.Analysis
For pip install the wheel cache is created before testing the cache is writable.
pip/src/pip/_internal/commands/install.py
Lines 331 to 342 in 81805a5
For pip wheel, no such cache writability check is done.
The text was updated successfully, but these errors were encountered: