Beispiel #1
0
 def run_command(self, options, args):
     if not args:
         self.parser.print_help()
         sys.exit(1)
     for arg in args:
         try:
             p = PythonInstaller.get_installer(arg, options)
             p.install()
         except Exception, e:
             print e
             continue
Beispiel #2
0
 def run_command(self, options, args):
     if not args:
         self.parser.print_help()
         sys.exit(1)
     for arg in args:
         try:
             p = PythonInstaller.get_installer(arg, options)
             p.install()
         except Exception:
             import traceback
             traceback.print_exc()
             continue
Beispiel #3
0
def install_cmd(argv):
    """Use Pythonz to download and build the specified Python version"""
    installer = InstallCommand()
    options, versions = installer.parser.parse_args(argv)
    if len(versions) != 1:
        installer.parser.print_help()
        sys.exit(1)
    else:
        try:
            actual_installer = PythonInstaller.get_installer(versions[0], options)
            actual_installer.install()
        except AlreadyInstalledError as e:
            print(e)
Beispiel #4
0
def install_cmd(argv):
    '''Use Pythonz to download and build the specified Python version'''
    installer = InstallCommand()
    options, versions = installer.parser.parse_args(argv)
    if len(versions) != 1:
        installer.parser.print_help()
        sys.exit(1)
    else:
        try:
            actual_installer = PythonInstaller.get_installer(versions[0], options)
            actual_installer.install()
        except AlreadyInstalledError as e:
            print(e)
Beispiel #5
0
 def run_command(self, options, args):
     if not args:
         self.parser.print_help()
         sys.exit(1)
     for arg in args:
         try:
             p = PythonInstaller.get_installer(arg, options)
             p.install()
         except AlreadyInstalledError as e:
             logger.info(e)
         except Exception:
             import traceback
             traceback.print_exc()
             continue