tox-uv underspecifies the uv -p
option, allowing uv to find PyPy instead of CPython versions
#142
Labels
bug
Something isn't working
Issue
On Windows, I'm finding that uv discovers PyPy 3.10 before CPython 3.10 under the following circumstances:
-p 3.10
$PATH
but not the CPython language versionHowever, uv correctly distinguishes between PyPy and CPython when the implementation is included:
tox-uv removes the implementation if it's
cpython
, which -- on my Windows box -- means that my "py3.10" factor is unexpectedly running on PyPy 3.10 and fails due to a PyPy-incompatible dependency.Environment
Output of
pip list
of the host Python, wheretox
is installedOutput of running tox
Output of
tox -rvv
See reproducer below
Minimal example
On Windows:
C:\Program Files\Python 3.10\
.C:\Program Files\pypy310
Then, run the following in any directory:
I've tested a fix for this that always specifies the implementation when invoking uv (in the form
cpython3.10
orpypy3.10
) and have confirmed that uv correctly finds CPython and PyPy with that fix in place.I'll submit a PR as soon as I figure out the remaining piece -- a test that demonstrates the issue and fixes it.
The text was updated successfully, but these errors were encountered: