AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.23.101.241


Current Path : /snap/core20/current/lib/python3/dist-packages/pkg_resources/
Upload File :
Current File : //snap/core20/current/lib/python3/dist-packages/pkg_resources/py2_warn.py

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)