[macOS] Avoid creating symlinks for PyPy 7.3.4 (#3135)

This commit is contained in:
Mikhail Timofeev
2021-04-09 11:04:11 +03:00
committed by GitHub
parent bf22901ec6
commit 94a1c2770c

View File

@@ -58,8 +58,9 @@ function InstallPyPy
echo "PYPY_FULL_VERSION is $PYPY_FULL_VERSION"
echo $PYPY_FULL_VERSION > "PYPY_VERSION"
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