aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2019-11-14 22:01:09 +0100
committerBenoit Pierre <benoit.pierre@gmail.com>2019-11-15 20:06:07 +0100
commitb8101f06532b1deab448e6e23d0a61eb125c62df (patch)
tree071eacc6862d4f5e24cfac7baef53cc267399332 /setuptools/command
parent6e1838a9fb5feb000ba9b6a3c37c8b39d7e872b3 (diff)
downloadexternal_python_setuptools-b8101f06532b1deab448e6e23d0a61eb125c62df.tar.gz
external_python_setuptools-b8101f06532b1deab448e6e23d0a61eb125c62df.tar.bz2
external_python_setuptools-b8101f06532b1deab448e6e23d0a61eb125c62df.zip
deprecate easy_install command
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/easy_install.py8
-rw-r--r--setuptools/command/install.py2
2 files changed, 8 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 9d350ac0..d273bc10 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -410,7 +410,13 @@ class easy_install(Command):
]
self._expand_attrs(dirs)
- def run(self):
+ def run(self, show_deprecation=True):
+ if show_deprecation:
+ self.announce(
+ "WARNING: The easy_install command is deprecated "
+ "and will be removed in a future version."
+ , log.WARN,
+ )
if self.verbose != self.distribution.verbose:
log.set_verbosity(self.verbose)
try:
diff --git a/setuptools/command/install.py b/setuptools/command/install.py
index 31a5ddb5..72b9a3e4 100644
--- a/setuptools/command/install.py
+++ b/setuptools/command/install.py
@@ -114,7 +114,7 @@ class install(orig.install):
args.insert(0, setuptools.bootstrap_install_from)
cmd.args = args
- cmd.run()
+ cmd.run(show_deprecation=False)
setuptools.bootstrap_install_from = None