diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2020-12-27 19:00:33 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2020-12-27 19:00:33 +0100 |
| commit | cc8751fd7f338db173c2c04355460fd5cbcefb98 (patch) | |
| tree | 3c37cc95bf245165697d9f4d7f3d929de6142e2a /python/install.sh | |
| parent | 59a962ec2521f80cafda91325adb167c1c8d83f5 (diff) | |
.
Diffstat (limited to 'python/install.sh')
| -rwxr-xr-x | python/install.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/python/install.sh b/python/install.sh new file mode 100755 index 0000000..3090eff --- /dev/null +++ b/python/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +PYTHON38=$(which python3.8) +PYTHON39=$(which python3.9) + +PYTHON38_DIR=~/python38 +PYTHON39_DIR=~/python39 + +[ ! -d $PYTHON38_DIR ] && $PYTHON38 -m venv --system-site-packages $PYTHON38_DIR +[ ! -d $PYTHON39_DIR ] && $PYTHON39 -m venv --system-site-packages $PYTHON39_DIR + +$PYTHON38_DIR/bin/pip -q install -U -r ~/.dotfiles/python/requirements.pip38.txt +$PYTHON39_DIR/bin/pip -q install -U -r ~/.dotfiles/python/requirements.pip39.txt |
