-
-
Notifications
You must be signed in to change notification settings - Fork 457
uv
fails to recognize Python installations from mise sync python --uv
#3654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I noticed this behavior too, though it worked for some runtimes and not others. Wasn't sure why. |
ok I see why this is happening, it seems uv makes 2 modifications to the pythons:
the first is a simple file which maybe we could add, though doing so may have some ramifications I'm not aware of:
it's weird to me that they call it "externally-managed" but it seems to mean "internally managed" in the way I'm understanding it. The second file however I don't really understand at all and the changes between them are hard to follow since they have completely different structure. I don't know how much they actually have in common but it could probably be determined from executing the python and converting to json or something. This is uv's code: https://github.com/astral-sh/uv/blob/main/crates/uv-python/src/sysconfig/mod.rs#L217 I also found this in the indygreg docs: https://gregoryszorc.com/docs/python-build-standalone/main/quirks.html#references-to-build-time-paths it seems these are referenced used in python for things like the c compiler. These are settings mise should actually probably also be modifying I think outside of syncing with uv. For now I'm just going to remove the reverse syncing back to uv. If uv had a different way to integrate outside pythons or if somehow these binaries become identical between installs we could get the reverse syncing but for now I don't see a path forward with that. |
* fix: disable reverse uv syncing Fixes #3654 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix: disable reverse uv syncing Fixes jdx#3654 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Describe the bug
It seems that
uv
cannot recognize the symbolic link created bymise sync python --uv
in~/.local/share/uv/python
To Reproduce
Expected behavior
Python
versions installed bymise
should be detected byuv python list
. This means I can installthefuck
usinguvx_args = "--python 3.11"
, even whenPython 3.11
is not activated in the configurationmise doctor
outputAdditional context
The text was updated successfully, but these errors were encountered: