Projects/pyv

From razwiki
Revision as of 19:31, 18 January 2023 by Razzi (talk | contribs) (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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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