File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -423,33 +423,7 @@ def expand_dirs(self) -> None:
423423 self ._expand_attrs (dirs )
424424
425425 def run (self , show_deprecation : bool = True ) -> None :
426- if show_deprecation :
427- self .announce (
428- "WARNING: The easy_install command is deprecated "
429- "and will be removed in a future version." ,
430- log .WARN ,
431- )
432- if self .verbose != self .distribution .verbose :
433- log .set_verbosity (self .verbose )
434- try :
435- for spec in self .args :
436- self .easy_install (spec , not self .no_deps )
437- if self .record :
438- outputs = self .outputs
439- if self .root : # strip any package prefix
440- root_len = len (self .root )
441- for counter in range (len (outputs )):
442- outputs [counter ] = outputs [counter ][root_len :]
443- from distutils import file_util
444-
445- self .execute (
446- file_util .write_file ,
447- (self .record , outputs ),
448- f"writing list of installed files to '{ self .record } '" ,
449- )
450- self .warn_deprecated_options ()
451- finally :
452- log .set_verbosity (self .distribution .verbose )
426+ raise RuntimeError ("easy_install command is disabled" )
453427
454428 def pseudo_tempname (self ):
455429 """Return a pseudo-tempname base in the install directory.
You can’t perform that action at this time.
0 commit comments