class_docstr: Distutils command to hold user specified options
  to Fortran compilers.
  
  config_fc command is used by the FCompiler.customize() method.
class_docstr_tok: ["Distutils","command","to","hold","user","specified","options","to","Fortran","compilers",".","config_fc","command","is","used","by","the","FCompiler.customize","(",")","method","."]
code: def finalize_options(self):
      log.info(
          "unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options"
      )
      build_clib = self.get_finalized_command("build_clib")
      build_ext = self.get_finalized_command("build_ext")
      config = self.get_finalized_command("config")
      build = self.get_finalized_command("build")
      cmd_list = [self, config, build_clib, build_ext, build]
      for a in ["fcompiler"]:
          l = []
          for c in cmd_list:
              v = getattr(c, a)
              if v is not None:
                  if not isinstance(v, str):
                      v = v.compiler_type
                  if v not in l:
                      l.append(v)
          if not l:
              v1 = None
          else:
              v1 = l[0]
          if len(l) > 1:
              log.warn(
                  "  commands have different --%s options: %s"
                  ", using first in list as default" % (a, l)
              )
          if v1:
              for c in cmd_list:
                  if getattr(c, a) is None:
                      setattr(c, a, v1)
  
file_path: catboost/contrib/python/numpy/py3/numpy/distutils/command/config_compiler.py
imports: from distutils.core import Command
  from numpy.distutils import log
label_desc: Use image node_id 2 for calling the config_fc obj's underlying member method code with example usage: obj.finalize_options() without return types