code: def run(self):
      # HACK I disabled this check.
      if 0 and (
          sys.platform != "win32"
          and (
              self.distribution.has_ext_modules()
              or self.distribution.has_c_libraries()
          )
      ):
          raise DistutilsPlatformError(
              "distribution contains extensions and/or C libraries; "
              "must be compiled on a Windows 32 platform"
          )
  
      if not self.skip_build:
          self.run_command("build")
  
      install = self.reinitialize_command(
          "install", reinit_subcommands=1
      )
      install.root = self.bdist_dir
      install.skip_build = self.skip_build
      install.warn_dir = 0
  
      install_lib = self.reinitialize_command("install_lib")
      # we do not want to include pyc or pyo files
      install_lib.compile = 0
      install_lib.optimize = 0
  
      if self.distribution.has_ext_modules():
          # If we are building an installer for a Python version other
          # than the one we are currently running, then we need to ensure
          # our build_lib reflects the other Python version rather than ours.
          # Note that for target_version!=sys.version, we must have skipped the
          # build step, so there is no issue with enforcing the build of this
          # version.
          target_version = self.target_version
          if not target_version:
              assert self.skip_build, "Should have already checked this"
              target_version = sys.version[0:3]
          plat_specifier = ".%s-%s" % (get_platform(), target_version)
          build = self.get_finalized_command("build")
          build.build_lib = os.path.join(
              build.build_base, "lib" + plat_specifier
          )
  
      # Use a custom scheme for the zip-file, because we have to decide
      # at installation time which scheme to use.
      for key in ("purelib", "platlib", "headers", "scripts", "data"):
          value = string.upper(key)
          if key == "headers":
              value = value + "/Include/$dist_name"
          setattr(install, "install_" + key, value)
  
      log.info("installing to %s", self.bdist_dir)
      install.ensure_finalized()
  
      # avoid warning of 'install_lib' about installing
      # into a directory not in sys.path
      sys.path.insert(0, os.path.join(self.bdist_dir, "PURELIB"))
  
      install.run()
  
      del sys.path[0]
  
      # And make an archive relative to the root of the
      # pseudo-installation tree.
      from tempfile import mktemp
  
      archive_basename = mktemp()
      fullname = self.distribution.get_fullname()
      arcname = self.make_archive(
          archive_basename, "zip", root_dir=self.bdist_dir
      )
      # create an exe containing the zip-file
      self.create_exe(arcname, fullname, self.bitmap)
      if self.distribution.has_ext_modules():
          pyversion = get_python_version()
      else:
          pyversion = "any"
      self.distribution.dist_files.append(
          (
              "bdist_wininst",
              pyversion,
              self.get_installer_filename(fullname),
          )
      )
      # remove the zip-file again
      log.debug("removing temporary file '%s'", arcname)
      os.remove(arcname)
  
      if not self.keep_temp:
          remove_tree(self.bdist_dir, dry_run=self.dry_run)
  
file_path: magnitude/pymagnitude/third_party/_pysqlite/cross_bdist_wininst.py
imports: import sys, os, string
  from distutils.core import Command
  from distutils.util import get_platform
  from distutils.dir_util import create_tree, remove_tree
  from distutils.errors import *
  from distutils.sysconfig import get_python_version
  from distutils import log
label_desc: Use image node_id 3 for calling the bdist_wininst obj's underlying member method code with example usage: obj.run() without return types