Skip to content

Commit

Permalink
deprecate easy_install command
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Nov 15, 2019
1 parent 6e1838a commit b8101f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion setuptools/command/easy_install.py
Expand Up @@ -410,7 +410,13 @@ def expand_dirs(self):
]
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:
Expand Down
2 changes: 1 addition & 1 deletion setuptools/command/install.py
Expand Up @@ -114,7 +114,7 @@ def do_egg_install(self):
args.insert(0, setuptools.bootstrap_install_from)

cmd.args = args
cmd.run()
cmd.run(show_deprecation=False)
setuptools.bootstrap_install_from = None


Expand Down

0 comments on commit b8101f0

Please sign in to comment.