astral-sh / rye

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

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

Closed pjdon closed 6 months ago

pjdon commented 6 months ago

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

Currently:

Changes:

charliermarsh commented 6 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.