astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
20.51k stars 605 forks source link

Support for mirrors when installing Python versions #7403

Closed dillydill123 closed 6 days ago

dillydill123 commented 6 days ago

Apologies if this was brought up before or exists as a feature already, but I could not find either in documentation or existing issues.

It would be useful to have the ability to pass a flag or environment variable to tell uv where to download pre-built python interpreters as opposed to always choosing python-build-standalone. This would be useful for machines which may not access to the internet. In this case a mirror could be supplied.

Werni2A commented 6 days ago

The UV_PYTHON_INSTALL_MIRROR environment variable may help you in this case. Search for the term in the official docs for more details.

zanieb commented 6 days ago

Yep! We support this via that variable and UV_PYPY_INSTALL_MIRROR.

zanieb commented 6 days ago

We can probably call this out in the Python version concept doc if we don't already.