-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allow usage of UV, CPython and pypy mirrors #146
Comments
Actually, upon having time to look at this in more detail I'm quite confused. Why doesn't setting the For UV however I understand because there is no option currently. |
Hi @ofek, yes you're totally right! |
Guess we can close this issue? 🙂 |
Okay then, thank you! Just released https://github.com/ofek/pyapp/releases/tag/v0.23.0 |
First let me thank you again for this wonderful tool!
Context
We want to use pyapp in order to make easier the deployment and installation of some of ours CI/CD python tools.
However, depending on the environments, sometimes the connection to the public internet is closed. We want to be able to target our own mirrors, for which we have an network connectivity. These mirrors are proxying known external providers, including GitHub, and caching stuff.
Example: https://jfrog.com/help/r/jfrog-artifactory-documentation/configure-vcs-repository-layout
Currently, if you do not hardcode a specific distribution file URL with
PYAPP_DISTRIBUTION_SOURCE
, pyapp will always download UV, CPython and Pypy from their official source:I think this is issue can really be a blocker-point in large companies.
In fact, I want to promote pyapp as much as possible in my company and this is a mandatory feature for us.
Proposition
A simple solution would be to add three new environment variables:
PYAPP_DISTRIBUTION_CPYTHON_REPOSITORY
PYAPP_DISTRIBUTION_PYPY_HOST
PYAPP_UV_REPOSITORY
By default, they will keep the same url as before.
It's important to understand that we will keep the same download scheme. If we change the GitHub repository of UV or python-build-standalone, we will still downloads the artifacts from the release section of the repository.
Contribution
I worked on a pull-request and validated that the whole compilation & binary are working without any connectivity to GitHub when I set up the options.
I will link the pull-request to this issue.
The text was updated successfully, but these errors were encountered: