code: def verify_system_status(self):
          
          if not sys.platform.startswith('linux'):
              raise InstallError('Supported platform is Linux only.')
  
          if self.python.is_system_python():
              if self.python.is_python_binding_installed():
                  message = '''
  RPM Python binding already installed on system Python.
  Nothing to do.
  '''
                  Log.info(message)
                  raise InstallSkipError(message)
              elif self.sys_installed:
                  pass
              else:
                  message = '''
  RPM Python binding on system Python should be installed manually.
  Install the proper RPM package of python{,2,3}-rpm,
  or set a environment variable RPM_PY_SYS=true
  '''
                  raise InstallError(message)
  
          if self.rpm.is_system_rpm():
              self.verify_package_status()
docs: Verify system status.