rye icon indicating copy to clipboard operation
rye copied to clipboard

Make DEFAULT_KIND Configurable.

Open T-256 opened this issue 2 years ago • 2 comments

>rye toolchain register C:\python37x86\python.exe --name 32
Registered C:\python37x86\python.exe as [email protected]

>rye toolchain list
[email protected] (C:\python37x86\python.exe)

>rye pin 3.7
pinned 3.7.9 in .python-version

when use rye sync it's going to download [email protected]. there is already version 3.7.9 in toolchains and expect to use [email protected] toolchain. if not found any available version it can go to download cpython as current behavior.

T-256 avatar Jun 01 '23 14:06 T-256

Today the default is cpython. If you register with the name cpython you will prevent the automatic fetching. There is nothing better yet other than to be explicit about the name otherwise. What kind of behavior would make sense?

mitsuhiko avatar Jun 01 '23 16:06 mitsuhiko

If you register with the name cpython you will prevent the automatic fetching.

ah right, I completely forgot it.

What kind of behavior would make sense?

IMO it could be global option for pypy users, or 32bit users of cpython like me :) (I have 32bit versions under "32" name)

[behavior]
default_kind = "pypy"

T-256 avatar Jun 01 '23 18:06 T-256