Add UV_SKIP_WHEEL_FILENAME_CHECK to allow installing invalid wheels (#16046)

## Summary

This PR adds a user setting to allow (in rare cases) accepting wheels
with mismatched filenames and internal metadata.

Closes https://github.com/astral-sh/uv/issues/8082.

Closes https://github.com/astral-sh/uv/issues/15647.
This commit is contained in:
Charlie Marsh
2025-09-29 19:54:25 -04:00
committed by GitHub
parent 170ab1cd7f
commit 7d9ea797b0
12 changed files with 159 additions and 101 deletions
+7
View File
@@ -499,6 +499,13 @@ The URL to treat as an S3-compatible storage endpoint. Requests to this endpoint
will be signed using AWS Signature Version 4 based on the `AWS_ACCESS_KEY_ID`,
`AWS_SECRET_ACCESS_KEY`, `AWS_PROFILE`, and `AWS_CONFIG_FILE` environment variables.
### `UV_SKIP_WHEEL_FILENAME_CHECK`
Avoid verifying that wheel filenames match their contents when installing wheels. This
is not recommended, as wheels with inconsistent filenames should be considered invalid and
corrected by the relevant package maintainers; however, this option can be used to work
around invalid artifacts in rare cases.
### `UV_STACK_SIZE`
Use to set the stack size used by uv.