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.
Description:
Currently,
setup-pythoncaches only the~/.cache/pipdirectory 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 installoutput shows "Collecting" and "Installing" instead of "Requirement already satisfied" for all packages.Justification:
For example installing the
ansiblepackage takes well over a minute even if it's already downloaded.Are you willing to submit a PR?
Yes, I can try.