From 5d420bb788898217727d24814c8259e419bf8773 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 15 Nov 2023 21:12:15 +0300 Subject: [PATCH] Build: Make Python virtual environment Install libraries. --- bkmk-venv | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bkmk-venv 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 -- 2.39.2