diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-06-16 17:21:27 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-06-16 17:22:06 -0400 |
commit | 97a686d4e65fb30f0db4be3e498792b531942128 (patch) | |
tree | 99e3ef84da81058b563df97bca17a0a61df02bf3 | |
parent | 308314268233cc56e7a8c5870fec75b566230411 (diff) | |
download | external_python_setuptools-97a686d4e65fb30f0db4be3e498792b531942128.tar.gz external_python_setuptools-97a686d4e65fb30f0db4be3e498792b531942128.tar.bz2 external_python_setuptools-97a686d4e65fb30f0db4be3e498792b531942128.zip |
Restore __requires__ directive for compatibility. Fixes #2198.
-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: |