mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 05:15:00 +00:00
Fix tool dist-info directory normalization (#4686)
`.dist-info` directories use a different normalization. Fixes #4685
This commit is contained in:
parent
049833e037
commit
bbd2deb64f
1 changed files with 5 additions and 1 deletions
|
@ -297,7 +297,11 @@ fn find_dist_info(
|
|||
package_name: &PackageName,
|
||||
package_version: &Version,
|
||||
) -> Result<PathBuf, Error> {
|
||||
let dist_info_prefix = format!("{package_name}-{package_version}.dist-info");
|
||||
let dist_info_prefix = format!(
|
||||
"{}-{}.dist-info",
|
||||
package_name.as_dist_info_name(),
|
||||
package_version
|
||||
);
|
||||
environment
|
||||
.interpreter()
|
||||
.site_packages()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue