mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
0e1e0ef566
_should_cache is only called by _get_cache_dir. In pip install mode, _get_cache_dir is never called when check_binary_allowed returns False because in that case should_build_for_install_command has returned False before and the build was skipped. In pip wheel mode, check_binary_allowed always returns True (because it is not passed to the build function). So _should_cache can use _always_true for check_binary_allowed. *Alternative* Alternatively, we could have passed check_binary_allowed to build in pip wheel mode. The only difference is that wheels built locally from *legacy* packages would then not be cached, when pip wheel is used with --no-binary. |
||
---|---|---|
.. | ||
__init__.py | ||
check.py | ||
completion.py | ||
configuration.py | ||
debug.py | ||
download.py | ||
freeze.py | ||
hash.py | ||
help.py | ||
install.py | ||
list.py | ||
search.py | ||
show.py | ||
uninstall.py | ||
wheel.py |