uv/crates/uv-python/python/packaging
Skyler Hawthorne 91c3ebc6f7
Fix Python interpreter discovery on non-glibc hosts (#9005)
## Summary

On Termux, uv currently fails to find any interpreter because it can't
find a glibc version, because there isn't one. But the Python
interpreter is still functional nonetheless.

So, when glibc cannot be found, simply return 0 for the version numbers
and mark the interpreter as being incompatible with manylinux

I really don't know if this is the right way to address this, but I can
attest that manual testing shows uv appears to be fully functional, at
least for pip and virtualenvs.

Fixes #7373

## Test Plan

I tried running the test suite, and after some tweaks, a good portion of
the test suite passes as well. A significant number of tests fail, but
this appears to be due to minor differences in output, like warnings
about hard links not working (hard links are completely disallowed on
Android), differences in the number of files removed, etc. The test
suite seems to be very sensitive to minor variations in output.
2024-11-21 12:35:02 +01:00
..
__init__.py Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
_elffile.py Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
_manylinux.py Fix Python interpreter discovery on non-glibc hosts (#9005) 2024-11-21 12:35:02 +01:00
_musllinux.py Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
LICENSE.APACHE Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
LICENSE.BSD Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
README.md Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00

pypa/packaging

This directory contains vendored pypa/packaging modules as of cc938f984bbbe43c5734b9656c9837ab3a28191f.

The files are licensed under BSD-2-Clause OR Apache-2.0.