SIGN IN SIGN UP

Fix crash on invalid entry points (#14220)

pkg_resources raises a plain ValueError when entry_points.txt contains
an invalid entry point, causing pip to display a traceback. This change
catches ValueError and re-raises it as InstallationError.

Starting with Python 3.15, importlib.metadata also validates entry points
while parsing, so the importlib backend applies the same exception handling.
Y
Youngkwang Yang committed
d7d0d0a39494e28ec1c407bd0680e4a4d1067791
Parent: e62cc2d
Committed by GitHub <noreply@github.com> on 8/3/2026, 7:52:58 PM