class_docstr: Override the default bdist_rpm behavior to do the following:
  
  1. Run egg_info to ensure the name and version are properly calculated.
  2. Always run 'install' using --single-version-externally-managed to
     disable eggs in RPM distributions.
class_docstr_tok: ["Override","the","default","bdist_rpm","behavior","to","do","the","following",":","1",".","Run","egg_info","to","ensure","the","name","and","version","are","properly","calculated",".","2",".","Always","run","'install","'","using","--","single-version-externally-managed","to","disable","eggs","in","RPM","distributions","."]
code: def run(self):
      SetuptoolsDeprecationWarning.emit(
          "Deprecated command",
          """
              bdist_rpm is deprecated and will be removed in a future version.
              Use bdist_wheel (wheel packages) instead.
              """,
          see_url="https://github.com/pypa/setuptools/issues/1988",
          due_date=(
              2023,
              10,
              30,
          ),  # Deprecation introduced in 22 Oct 2021.
      )
  
      # ensure distro name is up-to-date
      self.run_command("egg_info")
  
      orig.bdist_rpm.run(self)
  
imports: import distutils.command.bdist_rpm
  from ..warnings import SetuptoolsDeprecationWarning
label_desc: Use image node_id 1 for calling the bdist_rpm obj's underlying member method code with example usage: obj.run() without return types