Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Use install_only_stripped by default in certain cases

Aperta
#4,218 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

This is a design discussion about when rules_python should default to install_only_stripped runtimes (opt-in today). Read the issue thread for the tradeoff: smaller binaries (~26MB vs up to ~77MB) versus debug symbols needed by tests, especially C++-heavy projects. Suggested scopes include -c opt, py_zipapp in opt mode, and exec mode. Done means maintainers agree on defaults and the flag/runtime selection is updated accordingly; do not implement until that is decided.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

We added the install_only_stripped runtimes to the default set of runtimes and made using them an opt-in choice with a flag.

Using them by default was brought up, but the discussion fizzled, so it was left as opt-in. For reference, a stripped runtime is about 26MB. Unstripped varies, but the largest is the 3.15 free threaded ones, which are 77MB.

Ignas suggested to have -c opt use install_only_stripped. I'm generally +1 on this.

My main reservation with enabling it by default is that tests benefit from having debug symbols, especially for projects that use a lot of C++ code. If we could use stripped runtimes for binaries, but not tests, when in opt mode, that'd be ideal, I think.

Maybe, at the least, we have py_zipapp default to stripped runtimes when in opt mode? That would help address the originating issue of zipapps being too large.

I'll suggest: enable it for exec mode by default. Exec tools are unlikely to need debug symbols and would benefit from a smaller runtime.

cc @gfrankliu @aignas

Lingua principale
Starlark
Stelle
688
Fork
724
Merge medio
1g 18h
PR unite (30g)
46

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bazel-contrib/rules_python

Tutte le issue di bazel-contrib/rules_python

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.