bazel-contrib / bazel-contrib/rules_python
Evaluate the best extraction method for repository rules
- Langage dominant
- Starlark
- Étoiles
- 688
- Forks
- 721
- Merge moyen
- 15 h 7 min
- PR mergées (30 j)
- 76
Description
Alternatives:
* What we have in legacy - Python interpreter + `installer` whl
* What we have in pipstar - `repository_ctx.extract` + `chmod` and `repository_ctx.rename`
* What `uv` is using - https://github.com/astral-sh/uv/blob/0.9.28/crates/uv-extract/src/sync.rs
* A regular `uutils` chmod + unzip
For the last thing we would probably have to setup:
- development rust toolchain.
- binary archiving as part of release. We could probably download the right thing and store hashes using the new `facts` API for `bzlmod`.
- download the binary as a dependency to `whl_library`.
This is a followup to #3554 and #3555.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par lire les follow-ups #3554 et #3555, puis comparez le chemin de l’interpréteur Python legacy et du wheel de l’installer, le chemin de pipstar repository_ctx.extract/chmod/rename, uv's crates/uv-extract/src/sync.rs et l’option chmod/unzip de uutils. Vérifiez les implications pour l’API facts de release, whl_library et bzlmod décrites dans l’issue. Le travail est terminé lorsqu’une approche d’extraction justifiée, avec ses exigences de toolchain, de dépendances, de binary-release et de hash, a été sélectionnée et documentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python, rust
- Domaine
- build-system, tooling
- Type d'issue
- Refactorisation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100