feat: add setup command to Python installation script

- Introduced a new "setup" command in the Python installation script to facilitate the setup of pyenv.
- This enhancement improves the usability of the script by allowing users to easily configure their Python environment.
This commit is contained in:
Marvin Zhang
2024-12-30 13:52:33 +08:00
parent ef499a03e0
commit d4d771449d

View File

@@ -109,6 +109,9 @@ version="${2:-3.12.8}"
requirements="${3:-}"
case $command in
"setup")
setup_pyenv
;;
"install")
setup_pyenv
# Check if version is already installed