Closed b0o closed 2 months ago
Yeah this looks off. I'll take a look.
Yeah this is an interesting problem. We depend on build
so we can't use the user's environment.
I think we need to create an ephemeral virtualenv with uv.
I believe I have a fix here: https://github.com/astral-sh/rye/pull/1250
Steps to Reproduce
Running
rye build
uses whatever version of python is configured for rye's global installation.Expected Result
Rye should use the python version specified in the
.python-version
file.Actual Result
Note the
cp312
tag instead ofcp311
.Version Info
Other Info
I tested the following patch, which "fixes" the issue, but requires adding
build
as a dev-dependency.Related: #1152