Commit 58f0b3d1 authored by Jason R. Coombs's avatar Jason R. Coombs

Remove py2_warn, no longer needed as a SyntaxError is encountered before the...

Remove py2_warn, no longer needed as a SyntaxError is encountered before the warning can be issueed.
parent aff64ae8
......@@ -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