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

.tar.gz artefacts (for Bazel) #79

Closed
jheaff1 opened this issue May 24, 2021 · 4 comments
Closed

.tar.gz artefacts (for Bazel) #79

jheaff1 opened this issue May 24, 2021 · 4 comments

Comments

@jheaff1
Copy link

jheaff1 commented May 24, 2021

Hi,

This awesome project could be utilised to provide hermetic Python toolchains within a project built using Bazel.

Currently, Bazel’s http_archive rule does not support .tar.zst files. Would it be possible for this project to also provide .tar.gz files?

@indygreg
Copy link
Owner

If bazel toolchain support is what you are after, I think a reasonable feature request would be to provide artifacts that can be used explicitly as a bazel toolchain. These would likely be .tar.gz archives with just the Python installation (not the object files and other build artifacts/metadata).

Would it be sufficient to publish a .tar.gz with just the contents of the python/install directory to serve as bazel toolchains? Should there be a root directory (like python/) or should we just move everything in python/install to the root directory (e.g. bin/python3.9)?

@jheaff1
Copy link
Author

jheaff1 commented Jul 18, 2021

Yes I think a tar.gz containing the python install directory would suffice.

The directory structure of the tarball shouldn’t matter, although moving everything from python/install to the root directory seems sensible

@indygreg
Copy link
Owner

I just committed a script and basic CI support for normalizing a .tar.zst archive to a .tar.gz archive. The archives essentially have python/install/* rewritten to python/* and the compression changed from zstandard to gzip.

I plan to publish the .tar.gz archives as part of the next release. That may happen as early as the end of the day.

@jheaff1
Copy link
Author

jheaff1 commented Jul 24, 2021

Brilliant, thank you very much!

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