Skip to content

Commit

Permalink
Restore __requires__ directive for compatibility. Fixes #2198.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 16, 2020
1 parent 3083142 commit 97a686d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/2198.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore ``__requires__`` directive in easy-install wrapper scripts.
3 changes: 3 additions & 0 deletions setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,9 @@ class ScriptWriter:
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = %(spec)r
try:
from importlib.metadata import distribution
except ImportError:
Expand Down

0 comments on commit 97a686d

Please sign in to comment.