code: def check_install_build_global(options, check_options=None):
      # type: (Values, Optional[Values]) -> None
      
      if check_options is None:
          check_options = options
  
      def getname(n):
          return getattr(check_options, n, None)
      names = ["build_options", "global_options", "install_options"]
      if any(map(getname, names)):
          control = options.format_control
          control.disallow_binaries()
          warnings.warn(
              'Disabling all use of wheels due to the use of --build-options '
              '/ --global-options / --install-options.', stacklevel=2,
          )
docs: Disable wheels if per-setup.py call options are set.
  
      :param options: The OptionParser options to update.
      :param check_options: The options to check, if not supplied defaults to
          options.