From fb8e27825dbbe37f4d8e02d51bcc8e36d1e75666 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Sun, 12 Apr 2026 14:16:44 -0400 Subject: [PATCH] make install.sh work on systems withou pip --- scripts/install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index e23592f..0d1e121 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -35,7 +35,6 @@ else done venv="~/venvs" fi -python3 -m pip --version > /dev/null 2>&1 || { echo "pip is not installed, please install pip for python3"; exit 1; } if [ "$what" = "server" ]; then echo "Installing heartbeat server (hbd)" @@ -45,10 +44,14 @@ else fi if [ ! -d $venv/hbd ]; then mkdir -p $venv - python3 -m venv $venv/hbd --system-site-packages + python3 -m venv $venv/hbd --system-site-packages --without-pip + . $venv/hbd/bin/activate + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py + deactivate +# python3 -m pip --version > /dev/null 2>&1 || { echo "pip is not installed, please install pip for python3"; exit 1; } fi . $venv/hbd/bin/activate -pip install --index-url https://git.wrede.ca/api/packages/andreas/pypi/simple/ --extra-index-url https://pypi.org/simple hbd[$what] +pip install --upgrade --index-url https://git.wrede.ca/api/packages/andreas/pypi/simple/ --extra-index-url https://pypi.org/simple hbd[$what] if [ "$what" = "server" ]; then rm -f ~$where/hbd ln -sf $(which hbd) $where/hbd