Commit 6f40506b authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2238 from pypa/remove-py2-warning

Remove py2warn
parents ec410c35 317337da
Removed pkg_resources.py2_warn module, which is no longer reachable.
......@@ -82,7 +82,6 @@ __import__('pkg_resources.extern.packaging.version')
__import__('pkg_resources.extern.packaging.specifiers')
__import__('pkg_resources.extern.packaging.requirements')
__import__('pkg_resources.extern.packaging.markers')
__import__('pkg_resources.py2_warn')
__metaclass__ = type
......
import sys
import warnings
import textwrap
msg = textwrap.dedent("""
Encountered a version of Setuptools that no longer supports
this version of Python. Please head to
https://bit.ly/setuptools-py2-sunset for support.
""")
pre = "Setuptools no longer works on Python 2\n"
if sys.version_info < (3,):
warnings.warn(pre + "*" * 60 + msg + "*" * 60)
raise SystemExit(32)
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