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
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
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)
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)
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