mirror of https://github.com/astral-sh/uv
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:
parent
8971944a01
commit
c598f86476
|
|
@ -52,7 +52,7 @@ pub fn install_wheel(
|
||||||
}
|
}
|
||||||
|
|
||||||
let version = Version::from_str(&version)?;
|
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()));
|
return Err(Error::MismatchedVersion(version, filename.version.clone()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue