Allow local versions in wheel filenames (#3596)

## Summary

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

## Test Plan

`cargo run pip install --verbose
https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.8/flash_attn-2.5.8+cu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
--no-deps`
This commit is contained in:
Charlie Marsh 2024-05-14 20:02:09 -04:00 committed by GitHub
parent 8971944a01
commit c598f86476
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ pub fn install_wheel(
}
let version = Version::from_str(&version)?;
if version != filename.version {
if version != filename.version && version != filename.version.clone().without_local() {
return Err(Error::MismatchedVersion(version, filename.version.clone()));
}
}