https://github.com/python/importlib_metadata/commit/01cf7b4591671b5a44c28cb054e07074ce0ee760#diff-68d928f3527c08d068d21149666147cda5bbd2be1f2ebda260cc40434600d522 This breaks when there's a comment in entry_points, e.g. Paste has such an entry: https://github.com/cdent/paste/blob/master/setup.py#L92