]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-venv
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / bkmk-venv
index 10dfcbeadf5c9e8b95e20bb4e9e5ac5da48f68e2..f36a2d5c65288d052fb78fcec3adba72886931d1 100644 (file)
--- a/bkmk-venv
+++ b/bkmk-venv
@@ -2,8 +2,10 @@
 # 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
+    test -d .venv && . .venv/bin/activate || {
+         { python3 -m virtualenv .venv || python3 -m venv .venv; } &&
+         . .venv/bin/activate &&
+         pip install --compile --upgrade beautifulsoup4 lxml m_lib.full \
+         "requests[socks]" requests-ftp
+    } || exit 1
 fi