Skip to content

Comment on Solving Sudoku in Python Packaging

Comments

No way pip actually is a really inefficient SAT solver!

For a long time it was not because there was no backtracking.

Now it is just an exhaustive, recursive search: for the current package try using versions from newest to oldest, enqueue its dependencies, if satisfied return, if conflict continue.

If there was no backtracking, that implies it couldn't solve every sudoku? That is rather amusing with the implication that it couldn't solve every dependency, as well?

uv actually talks about this in their resolver docs https://docs.astral.sh/uv/reference/resolver-internals/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.