Fix tool dist-info directory normalization (#4686)

`.dist-info` directories use a different normalization.

Fixes #4685
This commit is contained in:
konsti 2024-07-01 12:43:56 +02:00 committed by GitHub
parent 049833e037
commit bbd2deb64f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()