Commit 97a686d4 authored by Jason R. Coombs's avatar Jason R. Coombs

Restore __requires__ directive for compatibility. Fixes #2198.

parent 30831426
Restore ``__requires__`` directive in easy-install wrapper scripts.
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment