Allow downloading wheels for metadata with --no-binary (#5707)

## Summary

We allow the use of (e.g.) `.whl.metadata` files when `--no-binary` is
enabled, so it makes sense that we'd also also allow wheels to be
downloaded for metadata extraction. So now, we validate `--no-binary` at
install time, rather than metadata-fetch time.

Closes https://github.com/astral-sh/uv/issues/5699.
This commit is contained in:
Charlie Marsh 2024-08-06 14:14:12 -04:00 committed by GitHub
parent 3b75d8b6d6
commit 9346946c7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 48 additions and 19 deletions

View file

@ -249,6 +249,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
self.cache,
tags,
&HashStrategy::None,
self.build_options,
DistributionDatabase::new(
self.client,
self,