File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ v4.3.1
2+ =======
3+
4+ * #320: Fix issue where normalized name for eggs was
5+ incorrectly solicited, leading to metadata being
6+ unavailable for eggs.
7+
18v4.3.0
29=======
310
Original file line number Diff line number Diff line change @@ -812,7 +812,17 @@ def locate_file(self, path):
812812
813813 @property
814814 def _normalized_name (self ):
815+ """
816+ Performance optimization: where possible, resolve the
817+ normalized name from the file system path.
818+ """
815819 stem = os .path .basename (str (self ._path ))
820+ return self ._name_from_stem (stem ) or super ()._normalized_name
821+
822+ def _name_from_stem (self , stem ):
823+ name , ext = os .path .splitext (stem )
824+ if ext not in ('.dist-info' , '.egg-info' ):
825+ return
816826 name , sep , rest = stem .partition ('-' )
817827 return name
818828
You can’t perform that action at this time.
0 commit comments