diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2019-11-14 22:01:09 +0100 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2019-11-15 20:06:07 +0100 |
commit | b8101f06532b1deab448e6e23d0a61eb125c62df (patch) | |
tree | 071eacc6862d4f5e24cfac7baef53cc267399332 /setuptools/command/easy_install.py | |
parent | 6e1838a9fb5feb000ba9b6a3c37c8b39d7e872b3 (diff) | |
download | python-setuptools-git-b8101f06532b1deab448e6e23d0a61eb125c62df.tar.gz |
deprecate easy_install command
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r-- | setuptools/command/easy_install.py | 8 |
1 files changed, 7 insertions, 1 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: |