code: def discover_settings(conf_base=None):
      
      settings = {
          'zmq_prefix': '',
          'libzmq_extension': False,
          'no_libzmq_extension': False,
          'skip_check_zmq': False,
          'build_ext': {},
          'bdist_egg': {},
      }
      if sys.platform.startswith('win'):
          settings['have_sys_un_h'] = False
      
      if conf_base:
          # lowest priority
          merge(settings, load_config('config', conf_base))
      merge(settings, get_cfg_args())
      merge(settings, get_eargs())
      
      return settings
docs: Discover custom settings for ZMQ path