Open
Description
Description:
Currently, setup-python
caches only the ~/.cache/pip
directory to avoid redownloads. However, it doesn't cache the installed packages. As some package have lengthy installation steps, this leads to delays in builds.
You can see the current behaviour for example in https://github.com/crabhi/setup-python-cache-test/actions/runs/1789016634 (or in attached build.txt) - the pip install
output shows "Collecting" and "Installing" instead of "Requirement already satisfied" for all packages.
Justification:
For example installing the ansible
package takes well over a minute even if it's already downloaded.
Are you willing to submit a PR?
Yes, I can try.