Infra: makefile/RTD: Use uv if installed #3791
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Like python/devguide#1320.
Using uv to install dependencies is quicker than pip.
On Read the Docs, it adds 1 second to install uv, and then cuts the docs build time from 134s -> 115s, overall reduces the time from 146s -> 129s.
pip: https://beta.readthedocs.org/projects/hugovk-peps/builds/24491058/
uv: https://beta.readthedocs.org/projects/hugovk-peps/builds/24491059/
Locally, running
make clean; time make venv
with a warm cache goes from 8.6s -> 0.5s:make venv 4.49s user 0.94s system 63% cpu 8.586 total
make venv 0.04s user 0.12s system 34% cpu 0.461 total
make html
is the same for both.Overall,
make clean html
goes from 1m26s -> 1m09s.📚 Documentation preview 📚: https://pep-previews--3791.org.readthedocs.build/