From: Oleg Broytman Date: Wed, 15 Nov 2023 18:12:15 +0000 (+0300) Subject: Build: Make Python virtual environment X-Git-Tag: 5.0.0~28 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5d420bb788898217727d24814c8259e419bf8773;p=bookmarks_db.git Build: Make Python virtual environment Install libraries. --- diff --git a/bkmk-venv b/bkmk-venv new file mode 100644 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