Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Configure uv to Fetch Python from a Mirrored python-build-standalone Repository #8046

Closed
PandyaDarshit opened this issue Oct 9, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists question Asking for clarification or support

Comments

@PandyaDarshit
Copy link

PandyaDarshit commented Oct 9, 2024

Hi,
I am using uv for Python package management in my Dockerfile. Specifically, I use the following command to install Python and set up a virtual environment:

RUN uv python install 3.8 && uv venv <virtual_env> --python 3.8

In a corporate environment where internet access is restricted, uv tries to fetch Python binaries from the python-build-standalone repository on GitHub. This often results in DNS or connection failures due to the restricted access. Below is the error message I receive:

error: Failed to install cpython-3.8.20-linux-x86_64-gnu Caused by: Request failed after 3 retries Caused by: error sending request for url (https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz) Caused by: client error (Connect) Caused by: dns error: failed to lookup address information: Name or service not known

Feature Request
Is it possible to configure uv to pull Python from a mirrored repository (e.g., a corporate-hosted mirror of python-build-standalone)? If not, could this functionality be added in a future release?

This would allow us to maintain a mirror of the required Python versions within our network and bypass the need to access GitHub for downloading binaries.

Any guidance or alternative solutions would be greatly appreciated!

Thank you for your work on this project!

@zanieb
Copy link
Member

zanieb commented Oct 9, 2024

Please see #8015

@zanieb zanieb added duplicate This issue or pull request already exists question Asking for clarification or support labels Oct 9, 2024
@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
@PandyaDarshit
Copy link
Author

Thanks @zanieb for quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

3 participants