File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -61,16 +61,16 @@ wget -qO- https://astral.sh/uv/install.sh | sudo env UV_UNMANAGED_INSTALL="/usr/
6161
6262mkdir -p /usr/local/python
6363# Install Python 3.9 using uv
64- uv python install --install-dir /usr/local/python 3.9
65- uv python pin 3.9
64+ UV_PYTHON_VERSION= 3.9
65+ uv python install --install-dir /usr/local/python "$UV_PYTHON_VERSION"
6666
6767export UV_PYTHON_INSTALL_DIR=/usr/local/python
68- # Make Python 3.9 from uv the default by creating symlinks
69- PYTHON39_PATH =$(uv python find 3.9 )
70- echo $PYTHON39_PATH
71- ln -s $PYTHON39_PATH /usr/local/bin/python3.9
72- ln -s $PYTHON39_PATH /usr/local/bin/python3
73- ln -s $PYTHON39_PATH /usr/local/bin/python
68+ # Make Python from uv the default by creating symlinks
69+ UV_PYTHON_BIN =$(uv python find --no-project "$UV_PYTHON_VERSION" )
70+ echo "uv python binary location: $UV_PYTHON_BIN"
71+ ln -s "$UV_PYTHON_BIN" " /usr/local/bin/python${UV_PYTHON_VERSION}"
72+ ln -s "$UV_PYTHON_BIN" /usr/local/bin/python3
73+ ln -s "$UV_PYTHON_BIN" /usr/local/bin/python
7474
7575# As a convention, we pin all python packages to a specific version. This
7676# is to to make sure we can control version upgrades through code changes.
You can’t perform that action at this time.
0 commit comments