class_docstr: Conditionally complement the setup.cfg options file.
  
  This class configures the include_dirs, library_dirs, libraries
  options as required by the system. Most of the configuration happens
  in finalize_options() method.
  
  If you want to set up the build step for a peculiar platform, add a
  method finalize_PLAT(), where PLAT matches your sys.platform.
docstr: Finalize build system configuration on win32 platform.
docstr_tok: ["Finalize","build","system","configuration","on","win32","platform","."]
code: def finalize_win32(self):
      """Finalize build system configuration on win32 platform."""
  
      # Add compiler-specific arguments:
      extra_compiler_args = []
  
      if self.compiler_is_mingw():
          # Default MinGW compilation of Python extensions on Windows uses
          # only -O:
          extra_compiler_args.append("-O3")
  
          # GCC-compiled Python on non-Windows platforms is built with strict
          # aliasing disabled, but that must be done explicitly on Windows to
          # avoid large numbers of warnings for perfectly idiomatic Python C
          # API code.
          extra_compiler_args.append("-fno-strict-aliasing")
  
      for extension in ext:  # ext is a global list of Extension objects
          extension.extra_compile_args.extend(extra_compiler_args)
      # End of add-compiler-specific arguments section.
  
      self.libraries.append("ws2_32")
      self.libraries.append("advapi32")
      if self.compiler_is_msvc():
          # MSVC requires an explicit "libpq"
          if "pq" in self.libraries:
              self.libraries.remove("pq")
          self.libraries.append("secur32")
          self.libraries.append("libpq")
          self.libraries.append("shfolder")
          for path in self.library_dirs:
              if os.path.isfile(os.path.join(path, "ms", "libpq.lib")):
                  self.library_dirs.append(os.path.join(path, "ms"))
                  break
          if self.have_ssl:
              self.libraries.append("libcrypto")
              self.libraries.append("libssl")
              self.libraries.append("crypt32")
              self.libraries.append("user32")
              self.libraries.append("gdi32")
  
imports: import os
  import sys
  import re
  import subprocess
  from setuptools import setup, Extension
  from distutils.command.build_ext import build_ext
  from distutils.ccompiler import get_default_compiler
  from distutils.errors import CompileError
  import configparser
label_desc: Use image node_id 8 for calling the psycopg_build_ext obj's underlying member method code with example usage: obj.finalize_win32() without return types