def __call__(self, args): config = self.develop.config packages = self.get_packages(getattr(args, 'package-regexp'), auto_checkout=args.auto_checkout) try: workingcopies = self.get_workingcopies(self.develop.sources) workingcopies.checkout( sorted(packages), verbose=args.verbose, submodules=self.develop.update_git_submodules, always_accept_server_certificate=self.develop. always_accept_server_certificate) for name in sorted(packages): source = self.develop.sources[name] if not source.get('egg', True): continue config.develop[name] = True logger.info("Activated '%s'." % name) logger.warning( "Don't forget to run buildout again, so the checked out packages are used as develop eggs." ) config.save() except (ValueError, KeyError): logger.error(sys.exc_info()[1]) sys.exit(1)
def __call__(self, args): config = self.develop.config packages = self.get_packages(getattr(args, 'package-regexp'), auto_checkout=args.auto_checkout, checked_out=args.checked_out, develop=args.develop) changed = False for name in sorted(packages): source = self.develop.sources[name] if not source.exists(): logger.warning( "The package '%s' matched, but isn't checked out." % name) continue if not source.get('egg', True): logger.warning("The package '%s' isn't an egg." % name) continue if config.develop.get(name) is not False: config.develop[name] = False logger.info("Deactivated '%s'." % name) changed = True if changed: logger.warn( "Don't forget to run buildout again, so the deactived packages are actually not used anymore." ) config.save()
def __call__(self, args): buildout_dir = self.develop.buildout_dir buildout_args = self.develop.config.buildout_args print("Last used buildout arguments: %s" % " ".join(buildout_args[1:])) if args.dry_run: logger.warning("Dry run, buildout not invoked.") logger.warning("DEPRECATED: The use of '-n' and '--dry-run' is deprecated, use the 'arguments' command instead.") return else: logger.info("Running buildout.") os.chdir(buildout_dir) subprocess.call(buildout_args)
def __call__(self, args): buildout_dir = self.develop.buildout_dir buildout_args = self.develop.config.buildout_args print "Last used buildout arguments:", print " ".join(buildout_args[1:]) if args.dry_run: logger.warning("Dry run, buildout not invoked.") return else: logger.info("Running buildout.") os.chdir(buildout_dir) subprocess.call(buildout_args)
def __call__(self): options, args = self.parser.parse_args(sys.argv[2:]) config = self.develop.config packages = self.get_packages(args, auto_checkout=options.auto_checkout, checked_out=options.checked_out, develop=options.develop) changed = False for name in sorted(packages): source = self.develop.sources[name] if not source.exists(): logger.warning("The package '%s' matched, but isn't checked out." % name) continue config.develop[name] = True logger.info("Activated '%s'." % name) changed = True if changed: logger.warn("Don't forget to run buildout again, so the actived packages are actually used.") config.save()
def __call__(self, args): config = self.develop.config packages = self.get_packages(getattr(args, 'package-regexp'), auto_checkout=args.auto_checkout) try: workingcopies = self.get_workingcopies(self.develop.sources) workingcopies.checkout(sorted(packages), verbose=args.verbose, submodules=self.develop.update_git_submodules, always_accept_server_certificate=self.develop.always_accept_server_certificate) for name in sorted(packages): source = self.develop.sources[name] if not source.get('egg', True): continue config.develop[name] = True logger.info("Activated '%s'." % name) logger.warning("Don't forget to run buildout again, so the checked out packages are used as develop eggs.") config.save() except (ValueError, KeyError): logger.error(sys.exc_info()[1]) sys.exit(1)
def __call__(self, args): config = self.develop.config packages = self.get_packages(getattr(args, 'package-regexp'), auto_checkout=args.auto_checkout, checked_out=args.checked_out, develop=args.develop) changed = False for name in sorted(packages): source = self.develop.sources[name] if not source.exists(): logger.warning("The package '%s' matched, but isn't checked out." % name) continue if not source.get('egg', True): logger.warning("The package '%s' isn't an egg." % name) continue config.develop[name] = True logger.info("Activated '%s'." % name) changed = True if changed: logger.warn("Don't forget to run buildout again, so the actived packages are actually used.") config.save()
def __call__(self): options, args = self.parser.parse_args(sys.argv[2:]) sources = self.develop.sources config = self.develop.config packages = set(self.get_packages(args)) workingcopies = WorkingCopies(sources) changed = False for name in sorted(sources): source = sources[name] if args and name not in packages: continue if not os.path.exists(source["path"]): logger.warning("The package '%s' matched, but isn't checked out." % name) continue if config.develop.get(name) != False: config.develop[name] = False logger.info("Deactivated '%s'." % name) changed = True if changed: logger.warn("Don't forget to run buildout again, so the deactived packages are actually not used anymore.") config.save()