parameters: (self)
docstring: Installs a pre-built package, including ones we built ourself.
docstring_summary: Installs a pre-built package, including ones we built ourself.
docstring_tokens: Installs a pre - built package including ones we built ourself .
function: def MakeInstall(self):
      """Installs a pre-built package, including ones we built ourself."""
      package_name = self._package_name
      config = self._config
      os.chdir(self._package_path)
      marker_path = INSTALLED_MARKER
      if os.path.exists(marker_path):
        if not config.force:
          print '%s already installed' % package_name
          return
        # remove built since we are forcing an install
        os.unlink(marker_path)
  
      PackageInstaller._VerifyMakeOrDie(config.make_command[0])
  
      print '\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
      print '+++  Installing %s' % package_name
      print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
  
      cmd = '%s %s install' % config.make_command
      PackageInstaller.RunOrDie(cmd, 'Failed to install %s' % package_name)
  
      # touch file so we know we installed it.
      open(marker_path, 'w').close()
  
      print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
      print '+++  Finished installing %s' % package_name
      print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
function_tokens: def MakeInstall ( self ) : package_name = self . _package_name config = self . _config os . chdir ( self . _package_path ) marker_path = INSTALLED_MARKER if os . path . exists ( marker_path ) : if not config . force : print '%s already installed' % package_name return # remove built since we are forcing an install os . unlink ( marker_path ) PackageInstaller . _VerifyMakeOrDie ( config . make_command [ 0 ] ) print '\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' print '+++  Installing %s' % package_name print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' cmd = '%s %s install' % config . make_command PackageInstaller . RunOrDie ( cmd , 'Failed to install %s' % package_name ) # touch file so we know we installed it. open ( marker_path , 'w' ) . close ( ) print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' print '+++  Finished installing %s' % package_name print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'