mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-14 08:56:27 +00:00
python3.13.0-rc.2 -> python3.13
This commit is contained in:
parent
5c7e648972
commit
233d9d3512
4
.github/actions/poetry_setup/action.yml
vendored
4
.github/actions/poetry_setup/action.yml
vendored
@ -55,11 +55,13 @@ runs:
|
|||||||
# Refresh the shell hashtable, to ensure correct `which` output.
|
# Refresh the shell hashtable, to ensure correct `which` output.
|
||||||
hash -r
|
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.
|
# `actions/cache@v3` doesn't always seem able to correctly unpack softlinks.
|
||||||
# Delete and recreate the softlinks pipx expects to have.
|
# Delete and recreate the softlinks pipx expects to have.
|
||||||
rm /opt/pipx/venvs/poetry/bin/python
|
rm /opt/pipx/venvs/poetry/bin/python
|
||||||
cd /opt/pipx/venvs/poetry/bin
|
cd /opt/pipx/venvs/poetry/bin
|
||||||
ln -s "$(which "python$PYTHON_VERSION")" python
|
ln -s "$(which "python$PYTHON_MAJOR_MINOR")" python
|
||||||
chmod +x python
|
chmod +x python
|
||||||
cd /opt/pipx_bin/
|
cd /opt/pipx_bin/
|
||||||
ln -s /opt/pipx/venvs/poetry/bin/poetry poetry
|
ln -s /opt/pipx/venvs/poetry/bin/poetry poetry
|
||||||
|
Loading…
Reference in New Issue
Block a user