From 63a1d3a583c426a4ea7d6fda1b429b4d8d59315a Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov Date: Wed, 30 Sep 2020 16:59:28 +0300 Subject: [PATCH] replace python-is-python2 to python-is-python3 --- images/linux/scripts/installers/python.sh | 6 +++--- images/linux/toolsets/toolset-2004.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/images/linux/scripts/installers/python.sh b/images/linux/scripts/installers/python.sh index 2cc9c464..47041778 100644 --- a/images/linux/scripts/installers/python.sh +++ b/images/linux/scripts/installers/python.sh @@ -9,12 +9,12 @@ set -e source $HELPER_SCRIPTS/os.sh # Install Python, Python 3, pip, pip3 -if isUbuntu16 || isUbuntu18 ; then +if isUbuntu16 || isUbuntu18; then apt-get install -y --no-install-recommends python python-dev python-pip python3 python3-dev python3-pip fi -if isUbuntu20 ; then - apt-get install -y --no-install-recommends python3 python3-dev python3-pip python-is-python3 +if isUbuntu20; then + apt-get install -y --no-install-recommends python3 python3-dev python3-pip ln -s /usr/bin/pip3 /usr/bin/pip fi diff --git a/images/linux/toolsets/toolset-2004.json b/images/linux/toolsets/toolset-2004.json index 5ac23025..7c704263 100644 --- a/images/linux/toolsets/toolset-2004.json +++ b/images/linux/toolsets/toolset-2004.json @@ -96,7 +96,7 @@ "locales", "openssh-client", "pkg-config", - "python-is-python2", + "python-is-python3", "rpm", "texinfo", "tk",