aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2020-12-27 19:00:33 +0100
committerbozo.kopic <bozo@kopic.xyz>2020-12-27 19:00:33 +0100
commitcc8751fd7f338db173c2c04355460fd5cbcefb98 (patch)
tree3c37cc95bf245165697d9f4d7f3d929de6142e2a /python
parent59a962ec2521f80cafda91325adb167c1c8d83f5 (diff)
.
Diffstat (limited to 'python')
-rwxr-xr-xpython/install.sh15
-rw-r--r--python/requirements.pip38.txt1
-rw-r--r--python/requirements.pip39.txt2
3 files changed, 18 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
diff --git a/python/requirements.pip38.txt b/python/requirements.pip38.txt
new file mode 100644
index 0000000..a1b589e
--- /dev/null
+++ b/python/requirements.pip38.txt
@@ -0,0 +1 @@
+pip
diff --git a/python/requirements.pip39.txt b/python/requirements.pip39.txt
new file mode 100644
index 0000000..d790e53
--- /dev/null
+++ b/python/requirements.pip39.txt
@@ -0,0 +1,2 @@
+sublime-music
+pip