asdf-community / asdf-community/asdf-python

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

Open
#208 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
729
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.