Projects/pyv: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Ok so this is a project to make a python installer that works like this > brew install pyv > apt install pyv Then > pyv latest will install the latest version of python....") |
No edit summary |
||
Line 1: | Line 1: | ||
Ok so this is a project to make a python installer that works like this |
Ok so this is a project to make a python installer that works like this |
||
> brew install pyv |
> brew install pyv |
||
> apt install pyv |
> apt install pyv |
||
Then |
Then |
||
> pyv latest |
> pyv latest |
||
will install the latest version of python. |
will install the latest version of python. |
Revision as of 18:31, 18 January 2023
Ok so this is a project to make a python installer that works like this
> brew install pyv > apt install pyv
Then
> pyv latest
will install the latest version of python.
Let's make a script called pyv.sh for starters
Here it is
#!/usr/bin/env bash pyv_install() { echo do install here ver $1 } pyv_list() { echo list versions } if test $# -eq 0; then echo "usage: pyv <version>" else case "$1" in list) pyv_list $@; exit;; *) pyv_install "$1"; exit;; esac fi