diff options
-rw-r--r-- | changelog.d/2198.misc.rst | 1 | ||||
-rw-r--r-- | setuptools/command/easy_install.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/2198.misc.rst b/changelog.d/2198.misc.rst new file mode 100644 index 00000000..d4b4be38 --- /dev/null +++ b/changelog.d/2198.misc.rst @@ -0,0 +1 @@ +Restore ``__requires__`` directive in easy-install wrapper scripts. diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 27b4558b..89be91ac 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -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: |