Ignore installed version when determining wheel compatibility (#890)

This commit is contained in:
Charlie Marsh
2024-01-12 08:57:00 -05:00
committed by GitHub
parent 5fd2c380a7
commit 11b11d04a7
2 changed files with 1 additions and 8 deletions
@@ -29,9 +29,4 @@ impl<'a> PythonRequirement<'a> {
pub(crate) fn target(&self) -> &'a Version {
self.target
}
/// Returns an iterator over the versions of Python to consider when resolving dependencies.
pub(crate) fn versions(&self) -> impl Iterator<Item = &'a Version> {
std::iter::once(self.installed).chain(std::iter::once(self.target))
}
}