Update Vagrantfile for tern 87/123687/1
authorAlexander Mazuruk <a.mazuruk@samsung.com>
Sun, 29 Aug 2021 20:07:15 +0000 (22:07 +0200)
committerAlexander Mazuruk <a.mazuruk@samsung.com>
Mon, 30 Aug 2021 11:53:14 +0000 (13:53 +0200)
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

test/legal/docker_license_analysis/Vagrantfile

index f1123ff..5a03339 100644 (file)
@@ -35,17 +35,12 @@ $install_docker= <<-SCRIPT
 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