docstr: Finalizes options for non-posix platforms
docstr_tok: ["Finalizes","options","for","non-posix","platforms"]
code: def finalize_other(self):
      """Finalizes options for non-posix platforms"""
      if self.user:
          if self.install_userbase is None:
              raise DistutilsPlatformError(
                  "User base directory is not specified"
              )
          self.install_base = (
              self.install_platbase
          ) = self.install_userbase
          self.select_scheme(os.name + "_user")
      elif self.home is not None:
          self.install_base = self.install_platbase = self.home
          self.select_scheme("posix_home")
      else:
          if self.prefix is None:
              self.prefix = os.path.normpath(sys.prefix)
  
          self.install_base = self.install_platbase = self.prefix
          try:
              self.select_scheme(os.name)
          except KeyError:
              raise DistutilsPlatformError(
                  "I don't know how to install stuff on '%s'" % os.name
              )
  
imports: import sys
  import os
  import contextlib
  import sysconfig
  import itertools
  from distutils._log import log
  from ..core import Command
  from ..debug import DEBUG
  from ..sysconfig import get_config_vars
  from ..file_util import write_file
  from ..util import convert_path, subst_vars, change_root
  from ..util import get_platform
  from ..errors import DistutilsOptionError, DistutilsPlatformError
  from .None import _framework_compat
  from ..None import _collections
  from site import USER_BASE
  from site import USER_SITE
label_desc: Use image node_id 5 for calling the install obj's underlying member method code with example usage: obj.finalize_other() without return types