From 528f1a0940f40be13de3c9b58334a51f012e6ede Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Sat, 21 Jan 2023 21:29:37 -0600 Subject: [PATCH] Added check for the odd Ubuntu 22.04 python2/3 issue. --- bin/wally-tool-chain-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/wally-tool-chain-install.sh b/bin/wally-tool-chain-install.sh index 6d633ed66..559745713 100755 --- a/bin/wally-tool-chain-install.sh +++ b/bin/wally-tool-chain-install.sh @@ -16,7 +16,11 @@ apt update apt install -y git gawk make texinfo bison flex build-essential python3 libz-dev libexpat-dev autoconf device-tree-compiler ninja-build libpixman-1-dev build-essential ncurses-base ncurses-bin libncurses5-dev dialog curl wget ftp libgmp-dev # needed for Ubuntu 22.04, gcc cross compiler expects python not python2 or python3. -ln -sf /usr/bin/python3 /usr/bin/python +if ! command -v python &> /dev/null +then + echo "WARNING: python3 was installed as python3 rather than python. Creating symlink." + ln -sf /usr/bin/python3 /usr/bin/python +fi # gcc cross-compiler cd $RISCV