Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ def warn_dash_deprecation(self, opt, section):

def _setuptools_commands(self):
try:
return metadata.distribution('setuptools').entry_points.names
entry_points = metadata.distribution('setuptools').entry_points
return {ep.name for ep in entry_points} # Avoid newer API for compatibility
except metadata.PackageNotFoundError:
# during bootstrapping, distribution doesn't exist
return []
Expand Down