mirror of https://github.com/astral-sh/uv
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
|
|
@ -297,7 +297,11 @@ fn find_dist_info(
|
||||||
package_name: &PackageName,
|
package_name: &PackageName,
|
||||||
package_version: &Version,
|
package_version: &Version,
|
||||||
) -> Result<PathBuf, Error> {
|
) -> 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
|
environment
|
||||||
.interpreter()
|
.interpreter()
|
||||||
.site_packages()
|
.site_packages()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue