astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

Fix Rye not using user-chosen toolchain as default during installation #1054

Closed pjdon closed 5 months ago

pjdon commented 5 months ago

Fixes https://github.com/astral-sh/rye/issues/1024

Currently:

Changes:

charliermarsh commented 5 months ago

Thanks, this makes sense. I just tweaked the code a bit to respect the RYE_TOOLCHAIN_VERSION if it is set. I could see an argument either way... but I think the set env var overriding a prompted "default" version is reasonable.