Skip to content

Commit

Permalink
Allow local versions in wheel filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed May 14, 2024
1 parent c734858 commit 7555ef3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/install-wheel-rs/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ pub fn install_wheel(
}

let version = Version::from_str(&version)?;
if version != filename.version {
if filename.version.is_local() {
let non_local = filename.version.clone().without_local();
if version != non_local {
return Err(Error::MismatchedVersion(version, filename.version.clone()));
}
} else if version != filename.version {
return Err(Error::MismatchedVersion(version, filename.version.clone()));
}
}
Expand Down

0 comments on commit 7555ef3

Please sign in to comment.