Exemplo n.º 1
0
 def run_command(self, options, args):
     if not args:
         self.parser.print_help()
         sys.exit(1)
     # installing python
     for arg in args:
         try:
             if is_macosx():
                 p = PythonInstallerMacOSX(arg, options)
             else:
                 p = PythonInstaller(arg, options)
             p.install()
         except:
             continue
Exemplo n.º 2
0
 def run_command(self, options, args):
     if not args:
         self.parser.print_help()
         sys.exit(1)
     # installing python
     for arg in args:
         try:
             if is_macosx():
                 p = PythonInstallerMacOSX(arg, options)
             else:
                 p = PythonInstaller(arg, options)
             p.install()
         except:
             continue
Exemplo n.º 3
0
 def run_command(self, options, args):
     if args:
         # Install pythons
         for arg in args:
             try:
                 if is_macosx_snowleopard():
                     p = PythonInstallerMacOSX(arg, options)
                 else:
                     p = PythonInstaller(arg, options)
                 p.install()
             except UnknownVersionException:
                 continue
             except AlreadyInstalledException:
                 continue
             except NotSupportedVersionException:
                 continue
     else:
         logger.info("Unknown python version.")