Skip to content

Commit 154e053

Browse files
pipcl.py:wheel_name_match() use _normalise() when comparing wheel names.
1 parent 9b2de37 commit 154e053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipcl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def wheel_name_match(self, wheel):
852852
log1(f'py_limited_api; {tag_python=} compatible with {self.tag_python()=}.')
853853
py_limited_api_compatible = True
854854

855-
log1(f'{self.name == name=}')
855+
log1(f'{_normalise(self.name) == name=}')
856856
log1(f'{self.version == version=}')
857857
log1(f'{self.tag_python() == tag_python=} {self.tag_python()=} {tag_python=}')
858858
log1(f'{py_limited_api_compatible=}')
@@ -861,7 +861,7 @@ def wheel_name_match(self, wheel):
861861
log1(f'{self.tag_platform()=}')
862862
log1(f'{tag_platform.split(".")=}')
863863
ret = (1
864-
and self.name == name
864+
and _normalise(self.name) == name
865865
and self.version == version
866866
and (self.tag_python() == tag_python or py_limited_api_compatible)
867867
and self.tag_abi() == tag_abi

0 commit comments

Comments
 (0)