From e8f899d57c69a43ef21fd6319691f256e0d4830d Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Thu, 8 Apr 2021 20:10:40 +0300 Subject: [PATCH] Don't create symlinks for PyPy 7.3.4 (#3134) --- images/linux/scripts/installers/pypy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/pypy.sh b/images/linux/scripts/installers/pypy.sh index 826912c6..dc3f0a48 100644 --- a/images/linux/scripts/installers/pypy.sh +++ b/images/linux/scripts/installers/pypy.sh @@ -56,8 +56,9 @@ function InstallPyPy echo "Create additional symlinks (Required for UsePythonVersion Azure DevOps task)" cd $PYPY_TOOLCACHE_VERSION_ARCH_PATH/bin - ln -s $PYPY_MAJOR $PYTHON_MAJOR - ln -s $PYTHON_MAJOR python + # Starting from PyPy 7.3.4 these links are already included in the package + [ -f ./$PYTHON_MAJOR ] || ln -s $PYPY_MAJOR $PYTHON_MAJOR + [ -f ./python ] || ln -s $PYTHON_MAJOR python chmod +x ./python ./$PYTHON_MAJOR