uv/docs/concepts
konsti ae57d85dfb
Detect musl and error for musl pbs builds (#6643)
As described in #4242, we're currently incorrectly downloading glibc
python-build-standalone on musl target, but we also can't fix this by
using musl python-build-standalone on musl targets since the musl builds
are effectively broken.

We reintroduce the libc detection previously removed in #2381, using it
to detect which libc is the current one before we have a python
interpreter. I changed the strategy a big to support an empty `PATH`
which we use in the tests.

For simplicity, i've decided to just filter out the musl
python-build-standalone archives from the list of available archive,
given this is temporary. This means we show the same error message as if
we don't have a build for the platform. We could also add a dedicated
error message for musl.

Fixes #4242

## Test Plan

Tested manually.

On my ubuntu host, python downloads continue to pass:
```
target/x86_64-unknown-linux-musl/debug/uv python install
```

On alpine, we fail:
```
$ docker run -it --rm -v .:/io alpine /io/target/x86_64-unknown-linux-musl/debug/uv python install
  Searching for Python installations
  error: No download found for request: cpython-any-linux-x86_64-musl
```
2024-08-27 00:06:53 +00:00
..
cache.md docs: Use proper environment variables for Windows (#6433) 2024-08-23 13:04:08 -05:00
dependencies.md docs: Incorrect workspace members keyword (#6502) 2024-08-23 12:16:33 +02:00
index.md Update documentation sections (#5452) 2024-07-25 12:37:22 -05:00
projects.md Add docs for disabling build isolation with uv sync (#6607) 2024-08-26 18:21:43 +00:00
python-versions.md Detect musl and error for musl pbs builds (#6643) 2024-08-27 00:06:53 +00:00
resolution.md Document why we do lower bounds (#6516) 2024-08-23 20:28:39 +00:00
tools.md Further clarifications to the tools documentation (#6474) 2024-08-22 18:58:02 -05:00
workspaces.md Make some edits to the workspace concept documentation (#6223) 2024-08-19 18:57:31 +00:00