asdf-community / asdf-community/asdf-python

[Feature Request] Set base `python` version based on `asdf set python` order

Aperta
#208 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
729
Fork
65
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I think it would be helpful to set the base Python version (invoked when running `python`) based on the order Python versions are set. `asdf` does work as expected when using the more specific Python versions (`python3.12`, etc.), but I find it convenient to be able to type just `python` and get the version I want to use most often. I don't have `pyenv` installed anymore, but if I remember correctly, it has this behavior.

Current behavior:
```
❯ asdf set -u python 3.12.7 3.9.20

❯ python --version
Python 3.9.20
```

Desired behavior:
```
❯ asdf set -u python 3.12.7 3.9.20

❯ python --version
Python 3.12.7
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia tracciando come `asdf set -u python` registra più versioni e come il comando `python` seleziona la propria versione di base, usando gli esempi di comando in questa issue come riproduzione. Il lavoro è completo quando `python` usa la prima versione nell’ordine dell’insieme, mentre i comandi specifici come `python3.12` continuano a funzionare come prima.

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

Valutazione

Stack tecnologico
python, shell
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.