def _install_pips(self): #install any need pip items pips = self._get_pip_list() if pips: LOG.info("Setting up %s pips (%s)" % (len(pips), ", ".join(pips.keys()))) pip.install(pips) for name in pips.keys(): self.tracewriter.pip_install(name, pips.get(name))
def _install_pips(self): pips = self._get_pips_expanded() if pips: LOG.info("Setting up %s pips (%s)" % (len(pips), ", ".join(pips.keys()))) #do this before install just incase it craps out half way through for name in pips.keys(): self.tracewriter.pip_install(name, pips.get(name)) #now install pip.install(pips, self.distro)
def _install_pips(self): pips = self._get_pips() if pips: pip_names = set([p["name"] for p in pips]) LOG.info("Setting up %s pips (%s)", len(pip_names), ", ".join(pip_names)) with utils.progress_bar(INSTALL_TITLE, len(pips)) as p_bar: for (i, p) in enumerate(pips): self.tracewriter.pip_installed(p) pip.install(p, self.distro) p_bar.update(i + 1)
def _install_pips(self): pips = self._get_pips() if pips: pip_names = set([p['name'] for p in pips]) utils.log_iterable(pip_names, logger=LOG, header="Setting up %s python packages" % (len(pip_names))) with utils.progress_bar(INSTALL_TITLE, len(pips)) as p_bar: for (i, p) in enumerate(pips): self.tracewriter.pip_installed(p) pip.install(p, self.distro) p_bar.update(i + 1)
def _install_pips(self): pips = self._get_pips() if pips: pip_names = set([p['name'] for p in pips]) LOG.info("Setting up %s pips (%s)", len(pip_names), ", ".join(pip_names)) with utils.progress_bar(INSTALL_TITLE, len(pips)) as p_bar: for (i, p) in enumerate(pips): self.tracewriter.pip_installed(p) pip.install(p, self.distro) p_bar.update(i + 1)