Ubuntu: ensure /usr/bin/python is python3

/usr/bin/python may be python 2 on Focal, which causes problems with
Ansible on the control host. By installing the python-is-python3 package
we ensure that the correct interpreter is used.

This change updates the installation documentation and development
environment scripts.

Story: 2004960
Task: 42579

Change-Id: Ie94099075bae3c491f9cf830c38e6cfc8af605a6
This commit is contained in:
Mark Goddard 2021-06-07 09:58:31 +01:00
parent 211c68aa6c
commit 82def9a516
2 changed files with 5 additions and 1 deletions

View File

@ -145,7 +145,7 @@ function install_dependencies {
exit 1
else
sudo apt update
sudo apt install -y python3-dev python3-virtualenv gcc git libffi-dev
sudo apt install -y python-is-python3 python3-dev python3-virtualenv gcc git libffi-dev
fi
}

View File

@ -47,6 +47,10 @@ On Ubuntu::
$ apt install -y git
On Ubuntu, ensure that /usr/bin/python points to a Python 3 interpreter::
$ apt install -y python-is-python3
Local directory structure
=========================