X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-venv;h=f36a2d5c65288d052fb78fcec3adba72886931d1;hb=refs%2Fheads%2Fmaster;hp=10dfcbeadf5c9e8b95e20bb4e9e5ac5da48f68e2;hpb=5d420bb788898217727d24814c8259e419bf8773;p=bookmarks_db.git diff --git a/bkmk-venv b/bkmk-venv index 10dfcbe..f36a2d5 100644 --- 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