code: def get_exe_bytes(self):
      from distutils.msvccompiler import get_build_version
  
      # If a target-version other than the current version has been
      # specified, then using the MSVC version from *this* build is no good.
      # Without actually finding and executing the target version and parsing
      # its sys.version, we just hard-code our knowledge of old versions.
      # NOTE: Possible alternative is to allow "--target-version" to
      # specify a Python executable rather than a simple version string.
      # We can then execute this program to obtain any info we need, such
      # as the real sys.version string for the build.
      cur_version = get_python_version()
      if self.target_version and self.target_version != cur_version:
          if self.target_version < "2.3":
              raise NotImplementedError
          elif self.target_version == "2.3":
              bv = "6"
          elif self.target_version in ("2.4", "2.5"):
              bv = "7.1"
          elif self.target_version in ("2.6", "2.7"):
              bv = "9.0"
          else:
              raise NotImplementedError
      else:
          # for current version - use authoritative check.
          bv = get_build_version()
  
      # wininst-x.y.exe is in the same directory as this file
      directory = os.path.dirname(__file__)
      # we must use a wininst-x.y.exe built with the same C compiler
      # used for python.  XXX What about mingw, borland, and so on?
  
      # The uninstallers need to be available in $PYEXT_CROSS/uninst/*.exe
      # Use http://oss.itsystementwicklung.de/hg/pyext_cross_linux_to_win32/
      # and copy it alongside your pysqlite checkout.
  
      filename = os.path.join(
          directory,
          os.path.join(
              os.environ["PYEXT_CROSS"], "uninst", "wininst-%s.exe" % bv
          ),
      )
      return open(filename, "rb").read()
  
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 7 for calling the bdist_wininst obj's underlying member method code with example usage: obj.get_exe_bytes() and returns: open