Projects/pyv
Jump to navigation
Jump to search
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