diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-02-09 08:40:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-09 08:40:35 -0500 |
commit | 02445451393b081e48e8e1fb0c1060f60e7f1829 (patch) | |
tree | bb262aa51d979736d66a7bb7ef0e10996ba4be8b | |
parent | c109b93ec8aa611867e34966a009955fe7d48183 (diff) | |
parent | 6a3923e3380a8e679abe76a1356a4faebb4232b1 (diff) | |
download | python-setuptools-git-bootstrap.tar.gz |
Merge pull request #965 from idgserpro/bootstrapbootstrap
Deprecation message if not doing 'python ez_setup.py'
-rwxr-xr-x | ez_setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ez_setup.py b/ez_setup.py index d15ce1da..800c31ef 100755 --- a/ez_setup.py +++ b/ez_setup.py @@ -20,7 +20,6 @@ import subprocess import platform import textwrap import contextlib -import warnings from distutils import log @@ -38,9 +37,12 @@ except ImportError: DEFAULT_VERSION = "33.1.1" DEFAULT_URL = "https://pypi.io/packages/source/s/setuptools/" DEFAULT_SAVE_DIR = os.curdir +DEFAULT_DEPRECATION_MESSAGE = "ez_setup.py is deprecated and when using it setuptools will be pinned to {0} since it's the last version that supports setuptools self upgrade/installation, check https://github.com/pypa/setuptools/issues/581 for more info; use pip to install setuptools" MEANINGFUL_INVALID_ZIP_ERR_MSG = 'Maybe {0} is corrupted, delete it and try again.' +log.warn(DEFAULT_DEPRECATION_MESSAGE.format(DEFAULT_VERSION)) + def _python_cmd(*args): """ @@ -409,5 +411,4 @@ def main(): return _install(archive, _build_install_args(options)) if __name__ == '__main__': - warnings.warn("ez_setup.py is deprecated, check https://github.com/pypa/setuptools/issues/581 for more info; use pip to install setuptools") sys.exit(main()) |