mirror of https://github.com/pypa/pip
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. |
||
---|---|---|
.. | ||
cli | ||
commands | ||
distributions | ||
index | ||
models | ||
network | ||
operations | ||
req | ||
utils | ||
vcs | ||
__init__.py | ||
build_env.py | ||
cache.py | ||
configuration.py | ||
exceptions.py | ||
legacy_resolve.py | ||
locations.py | ||
main.py | ||
pep425tags.py | ||
pyproject.py | ||
self_outdated_check.py | ||
wheel_builder.py |