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

Custom python distribution links #589

Open
kotborealis opened this issue Jun 9, 2022 · 2 comments
Open

Custom python distribution links #589

kotborealis opened this issue Jun 9, 2022 · 2 comments

Comments

@kotborealis
Copy link

pyOxidizer downloads python binaries from github releases (see default_python_distributions.rs).

I want to selfhost those artifacts, is there any way to specify custom download links during pyoxidizer runtime?

@indygreg
Copy link
Owner

Yes, config files can specify the URL of a distribution to fetch by constructing a PythonDistribution instance from Starlark instead of calling default_python_distribution(). See https://gregoryszorc.com/docs/pyoxidizer/0.22.0/pyoxidizer_config_type_python_distribution.html.

A potential feature would be to change the root URL for the default Python distributions. Would that feature be of interest to you?

@kotborealis
Copy link
Author

Thanks!

Yeah, such feature would be useful, for example, in air-gapped environments, where you can't download something from the internet during build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants