projg2/gpep517

A command to find a wheel compatible with the current impl

Closed this issue · 2 comments

Related to https://bugs.gentoo.org/931689.

Basically, we'd use a command that would take a list of wheels, and find out whether any of them is compatible with the current Python implementation. We'd then either take one and install it, or run build-wheel.

We'd probably have to start with supported() from https://github.com/pypa/pip/blob/main/src/pip/_internal/models/wheel.py.

Ok, the logic in pip is pretty crazy, with a lot of hardcoded assumptions (like which platforms are compatible with which). In the end, for the Gentoo use case we don't need all that and given we don't really get much useful stuff out of Python itself for this, I think we can implement what we need in pure bash.