scancode-toolkit supports Python versions up to 3.9 (3.10 in progress)
thus removed adding external ppa in favor of distro provided Python.
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
Change-Id: If8eb6749e2655835cc8558c60f1a4f4bd85f3eb5
Issue-ID: INT-1735
SCRIPT
$install_python = <<-SCRIPT
- # TODO: currently scancode locks us to python3.6, they are currently
- # (10 Dec 2020) updating so check in a while
- add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install --yes \
- python3.6 libpython3.6-dev python3-pip python3.6-venv python3-setuptools\
+ python3.8 libpython3.8-dev python3-pip python3.8-venv python3-setuptools\
python3-apt \
attr bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev \
findutils git gnupg2 tar util-linux
- update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
- update-alternatives --set python3 /usr/bin/python3.6
pip3 install --upgrade pip
SCRIPT