Skip to content

Commit

Permalink
GH #755 - Handle system packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed May 26, 2024
1 parent 496ce61 commit c91d69b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/_install-deb.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -x

CURDIR="${BASH_SOURCE[0]}";RL="readlink";([[ `uname -s`=='Darwin' ]] || RL="$RL -f")
while([ -h "${CURDIR}" ]) do CURDIR=`$RL "${CURDIR}"`; done
N="/dev/null";pushd .>$N;cd `dirname ${CURDIR}`>$N;CURDIR=`pwd`;popd>$N
Expand All @@ -18,7 +20,7 @@ if ! [ -x "$(command -v lsb_release)" ]; then
fi

if [[ "$INSTALL_PYTHON" == "y" ]]; then
PYTHON_DEPENDENCIES="$PY_BINARY $PY_BINARY-dev $PY_BINARY-pip"
PYTHON_DEPENDENCIES="$PY_BINARY $PY_BINARY-dev"
fi

sudo apt-get install -y \
Expand All @@ -35,6 +37,9 @@ then
sudo ln -sf /usr/sbin/haproxy /usr/bin/haproxy
fi

# Needed for Ubuntu 24.04+
sudo rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED

curl https://bootstrap.pypa.io/get-pip.py | $(type -p $PY_BINARY)
$PY_BINARY -m pip install -U virtualenv==20.8.1 --break-system-packages

Expand Down

0 comments on commit c91d69b

Please sign in to comment.