Skip to content

Commit 0313b73

Browse files
committed
update last commit to install python3.10 with venv on Ubuntu, but not install Drake
1 parent 0c7f1e1 commit 0313b73

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

drake_pip/.github/ubuntu_setup

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@
33

44
set -euxo pipefail
55

6+
maybe_sudo=
7+
if [[ "${EUID}" -ne 0 ]]; then
8+
maybe_sudo=sudo
9+
fi
10+
611
echo 'APT::Acquire::Retries "4";' > /etc/apt/apt.conf.d/80-acquire-retries
712
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90-get-assume-yes
813

914
export DEBIAN_FRONTEND='noninteractive'
1015

11-
# setup/install_prereqs
16+
# setup/install_prereqs
17+
18+
${maybe_sudo} apt-get update
19+
${maybe_sudo} apt-get install --no-install-recommends $(cat <<EOF
20+
python3-all-dev
21+
python3.10-venv
22+
EOF
23+
)

0 commit comments

Comments
 (0)