]> git.phdru.name Git - bookmarks_db.git/blob - bkmk-venv
751416f4f767872df4dc6a5192afd9e9b1eb9393
[bookmarks_db.git] / bkmk-venv
1 # This is not a shell script; it shouldn't be executed,
2 # it should be sourced into the current shell.
3
4 if [ -z "$VIRTUAL_ENV" ]; then
5     test -d .venv && . .venv/bin/activate || {
6         { python3 -m virtualenv .venv || python3 -m venv .venv; } &&
7         . .venv/bin/activate &&
8         pip install --compile --upgrade beautifulsoup4 lxml m_lib.full
9     } || exit 1
10 fi