mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Remove Python from available versions (#3996)
## Summary I believe this is no longer necessary. Part of the problem here is that we can't _know_ the full set of available Python versions, especially once we start resolving against a `Requires-Python` rather than a fixed set of two versions.
This commit is contained in:
parent
10cd6b94c9
commit
ef43bcb233
2 changed files with 8 additions and 25 deletions
|
@ -260,16 +260,12 @@ impl<Provider: ResolverProvider, InstalledPackages: InstalledPackagesProvider>
|
|||
// Add version information to improve unsat error messages.
|
||||
Err(if let ResolveError::NoSolution(err) = err {
|
||||
ResolveError::NoSolution(
|
||||
err.with_available_versions(
|
||||
&state.python_requirement,
|
||||
&visited,
|
||||
state.index.packages(),
|
||||
)
|
||||
.with_selector(state.selector.clone())
|
||||
.with_python_requirement(&state.python_requirement)
|
||||
.with_index_locations(provider.index_locations())
|
||||
.with_unavailable_packages(&state.unavailable_packages)
|
||||
.with_incomplete_packages(&state.incomplete_packages),
|
||||
err.with_available_versions(&visited, state.index.packages())
|
||||
.with_selector(state.selector.clone())
|
||||
.with_python_requirement(&state.python_requirement)
|
||||
.with_index_locations(provider.index_locations())
|
||||
.with_unavailable_packages(&state.unavailable_packages)
|
||||
.with_incomplete_packages(&state.incomplete_packages),
|
||||
)
|
||||
} else {
|
||||
err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue