3c2bb7b8a1
this PR allows you to install python via `asdf install python 3.10` or `asdf install python 3`. It will then install the latest version starting with that prefix. It will add an alias in ~/.asdf/installs/python so you can have a .tool-versions file like the following: ``` python 3.10 ```
32 lines
438 B
Bash
Executable file
32 lines
438 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source "$(dirname "$0")/utils.sh"
|
|
|
|
list_all() {
|
|
install_or_update_python_build
|
|
echo $(
|
|
$(python_build_path) --definitions
|
|
echo 2
|
|
echo 2.1
|
|
echo 2.2
|
|
echo 2.3
|
|
echo 2.4
|
|
echo 2.5
|
|
echo 2.6
|
|
echo 2.7
|
|
echo 3
|
|
echo 3.0
|
|
echo 3.1
|
|
echo 3.2
|
|
echo 3.3
|
|
echo 3.4
|
|
echo 3.5
|
|
echo 3.6
|
|
echo 3.7
|
|
echo 3.8
|
|
echo 3.9
|
|
echo 3.10
|
|
) | tr '\n' ' '
|
|
}
|
|
|
|
list_all
|