summaryrefslogtreecommitdiff
path: root/pkg_resources/py2_warn.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-09-04 10:22:54 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-09-04 10:22:54 -0400
commitfc4d9828768ceebd2f9337481450c88376c013e9 (patch)
tree6dff622c50739ca19fdfbecf1008a42589d37b57 /pkg_resources/py2_warn.py
parent7bb73a477de24069002516eb6eb1d755bed9d65b (diff)
parent03d36b9edb53e266a0b4b836e1e3178f989a0781 (diff)
downloadpython-setuptools-git-feature/implicit-bootstrap.tar.gz
Merge branch 'master' into feature/implicit-bootstrapfeature/implicit-bootstrap
Diffstat (limited to 'pkg_resources/py2_warn.py')
-rw-r--r--pkg_resources/py2_warn.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/pkg_resources/py2_warn.py b/pkg_resources/py2_warn.py
deleted file mode 100644
index 1b151956..00000000
--- a/pkg_resources/py2_warn.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import sys
-import warnings
-import textwrap
-
-
-msg = textwrap.dedent("""
- You are running Setuptools on Python 2, which is no longer
- supported and
- >>> SETUPTOOLS WILL STOP WORKING <<<
- in a subsequent release (no sooner than 2020-04-20).
- Please ensure you are installing
- Setuptools using pip 9.x or later or pin to `setuptools<45`
- in your environment.
- If you have done those things and are still encountering
- this message, please comment in
- https://github.com/pypa/setuptools/issues/1458
- about the steps that led to this unsupported combination.
- """)
-
-pre = "Setuptools will stop working on Python 2\n"
-
-sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)