Skip to content

util.filterPythonInterpreters: sort by version descending#403

Open
kingarrrt wants to merge 1 commit intopyproject-nix:masterfrom
kingarrrt:master
Open

util.filterPythonInterpreters: sort by version descending#403
kingarrrt wants to merge 1 commit intopyproject-nix:masterfrom
kingarrrt:master

Conversation

@kingarrrt
Copy link
Copy Markdown

@kingarrrt kingarrrt commented Jan 26, 2026

This sorts the returned list of python interpreters by version descending so you can use builtins.head to get the best version.

I came to this from the uv2nix documentation at https://pyproject-nix.github.io/uv2nix/usage/getting-started.html#picking-a-python-interpreter which is incorrect without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant