python3.13.0-rc.2 -> python3.13

This commit is contained in:
Chester Curme 2024-09-28 14:45:27 -04:00
parent 5c7e648972
commit 233d9d3512

View File

@ -55,11 +55,13 @@ runs:
# Refresh the shell hashtable, to ensure correct `which` output.
hash -r
PYTHON_MAJOR_MINOR=$(echo "$PYTHON_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*/\1/')
# `actions/cache@v3` doesn't always seem able to correctly unpack softlinks.
# Delete and recreate the softlinks pipx expects to have.
rm /opt/pipx/venvs/poetry/bin/python
cd /opt/pipx/venvs/poetry/bin
ln -s "$(which "python$PYTHON_VERSION")" python
ln -s "$(which "python$PYTHON_MAJOR_MINOR")" python
chmod +x python
cd /opt/pipx_bin/
ln -s /opt/pipx/venvs/poetry/bin/poetry poetry