Skip to content

Instantly share code, notes, and snippets.

@jaraco
Created October 18, 2019 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaraco/b45998781be03918a21f17da996ee687 to your computer and use it in GitHub Desktop.
Save jaraco/b45998781be03918a21f17da996ee687 to your computer and use it in GitHub Desktop.
setuptools master $ git diff
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 2e5ad4bd..987d684e 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -728,6 +728,10 @@ class Distribution(_Distribution):
if self.features:
self._set_global_opts_from_features()
+ hook_key = 'setuptools.finalize_distribution_options'
+ for ep in pkg_resources.iter_entry_points(hook_key):
+ ep.load()(self)
+
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
value = getattr(self, ep.name, None)
if value is not None:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment