Skip to content

Commit

Permalink
Revert "Remove hook in run_commands; a different hook point may be be…
Browse files Browse the repository at this point in the history
…tter."

This reverts commit 650ff7f.

Closes #3511.
  • Loading branch information
jaraco committed Jul 11, 2024
1 parent 634d81d commit 63765f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ def _validate_metadata(self):
msg = f"Required package metadata is missing: {missing}"
raise DistutilsSetupError(msg)

def run_commands(self):
self._validate_metadata()
super().run_commands()

def _set_metadata_defaults(self, attrs):
"""
Fill-in missing metadata fields not supported by distutils.
Expand Down

0 comments on commit 63765f9

Please sign in to comment.