]> git.phdru.name Git - bookmarks_db.git/commitdiff
Build: Make Python virtual environment
authorOleg Broytman <phd@phdru.name>
Wed, 15 Nov 2023 18:12:15 +0000 (21:12 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 17 Nov 2023 10:58:35 +0000 (13:58 +0300)
Install libraries.

bkmk-venv [new file with mode: 0644]

diff --git a/bkmk-venv b/bkmk-venv
new file mode 100644 (file)
index 0000000..10dfcbe
--- /dev/null
+++ b/bkmk-venv
@@ -0,0 +1,9 @@
+# This is not a shell script; it shouldn't be executed,
+# it should be sourced into the current shell.
+
+if [ -z "$VIRTUAL_ENV" ]; then
+    test -d .venv || python3 -m virtualenv .venv
+    . .venv/bin/activate &&
+    pip install --compile --upgrade beautifulsoup4 lxml m_lib.full ||
+    exit 1
+fi