aboutsummaryrefslogtreecommitdiff
path: root/python/install.sh
blob: 3090effef7d981c2ea243e828f45c10e1c2ae167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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