In https://github.com/python/importlib_metadata/pull/377, Benoit reports that the "_normalized_name" of importlib_metadata and importlib.metadata is including an extraneous `.egg`. This issue means that in environments where both `.dist-info` and `.egg-info` exist for a package, they're not deduplicated and the entry points are returned for both. The scenario is common and problemmatic as evidenced by other bug reports (https://github.com/python/importlib_metadata/issues/410, https://github.com/python/importlib_metadata/issues/413). The fix, added in importlib_metadata 4.11.4, has been ported to Python 3.11.1 in https://github.com/python/cpython/pull/98875, but the fix should also be backported to Python 3.10. <!-- gh-pr-number: gh-99132 --> * PR: gh-99132 <!-- /gh-pr-number -->