asdf-community / asdf-community/asdf-python
[Feature Request] Set base `python` version based on `asdf set python` order
- Lenguaje dominante
- Shell
- Estrellas
- 730
- Forks
- 65
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza rastreando cómo `asdf set -u python` registra varias versiones y cómo el comando `python` selecciona su versión base, usando como reproducción los ejemplos de comandos de este issue. Se considera terminado cuando `python` usa la primera versión en el orden del conjunto, mientras que los comandos específicos como `python3.12` siguen funcionando como antes.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python, shell
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100