Closed 0x00cl closed 2 months ago
It reproduces.
Project python and rye's self-python need to be the same version (I think).
The rye sync command wants to install the script python
. It follows the existing symlink which goes to Rye's python install, and overwrites the file ~/.rye/py/cpython@3.12.3/bin/python3.12
(!) with a python script snippet.
I think the overwriting qualifies as a bug in uv? @charliermarsh @zanieb
Should be fixed by https://github.com/astral-sh/uv/pull/5165 in the next uv release. Thank you!
Steps to Reproduce
curl -sSf https://rye.astral.sh/get | bash
This installer will install rye to /home/tomas/.rye
This path can be changed by exporting the RYE_HOME environment variable.
Details: Rye Version: 0.36.0 Platform: linux (x86_64)
✔ Continue? · yes ✔ Select the preferred package installer · uv (fast, recommended) ✔ What should running
python
orpython3
do when you are not inside a Rye managed project? · Run a Python installed and managed by Rye ✔ Which version of Python should be used as default toolchain? · cpython@3.12 Installed binary to /home/tomas/.rye/shims/rye Bootstrapping rye internals Fetching requested internal toolchain 'cpython@3.12.3' Downloading cpython@3.12.3 Checking checksum Unpacking Downloaded cpython@3.12.3 Updated self-python installation at /home/tomas/.rye/selfThe rye directory /home/tomas/.rye/shims was not detected on PATH. It is highly recommended that you add it. ✔ Should the installer add Rye to PATH via .profile? · yes Added to PATH.
Even on other projects it will stop working unless I reinstall rye
Version Info
Stacktrace
No response