Exemplo n.º 1
0
 def add_dependents(egg):
     for r in self.reqs_egg(egg):
         reqs_deep[r.name].add(r)
         if (r.name in reqs_shallow  and
                 r.strictness < reqs_shallow[r.name].strictness):
             continue
         d = self.get_egg(r)
         if d is None:
             from enstaller.enpkg import EnpkgError
             err = EnpkgError(('Error: could not resolve "%s" ' +
                              'required by "%s"') % (str(r), egg))
             err.req = r
             raise err
         eggs.add(d)
         add_dependents(d)
Exemplo n.º 2
0
    def _sequence_flat(self, root):
        eggs = [root]
        for r in self._dependencies_from_egg(root):
            d = self._latest_egg(r)
            if d is None:
                from enstaller.enpkg import EnpkgError
                err = EnpkgError('Error: could not resolve %s' % str(r))
                err.req = r
                raise err
            eggs.append(d)

        can_order = self.are_complete(eggs)
        logger.info("Can determine install order: %r", can_order)
        if can_order:
            eggs = self._determine_install_order(eggs)
        return eggs
Exemplo n.º 3
0
    def _sequence_flat(self, root):
        eggs = [root]
        for r in self._dependencies_from_egg(root):
            d = self._latest_egg(r)
            if d is None:
                from enstaller.enpkg import EnpkgError
                err = EnpkgError('Error: could not resolve %s' % str(r))
                err.req = r
                raise err
            eggs.append(d)

        can_order = self.are_complete(eggs)
        logger.info("Can determine install order: %r", can_order)
        if can_order:
            eggs = self._determine_install_order(eggs)
        return eggs
Exemplo n.º 4
0
    def _sequence_flat(self, root):
        eggs = [root]
        for r in self.reqs_egg(root):
            d = self.get_egg(r)
            if d is None:
                from enstaller.enpkg import EnpkgError
                err = EnpkgError('Error: could not resolve %s' % str(r))
                err.req = r
                raise err
            eggs.append(d)

        can_order = self.are_complete(eggs)
        if self.verbose:
            print "Can determine install order:", can_order
        if can_order:
            eggs = self.determine_install_order(eggs)
        return eggs
Exemplo n.º 5
0
 def add_dependents(egg):
     for r in self.reqs_egg(egg):
         reqs_deep[r.name].add(r)
         if (r.name in reqs_shallow  and
                 r.strictness < reqs_shallow[r.name].strictness):
             continue
         d = self.get_egg(r)
         if d is None:
             from enstaller.enpkg import EnpkgError
             raise EnpkgError('Error: could not resolve %r '
                              'required by %r' % (r, egg))
         eggs.add(d)
         add_dependents(d)
Exemplo n.º 6
0
    def _sequence_flat(self, root):
        eggs = [root]
        for r in self.reqs_egg(root):
            d = self.get_egg(r)
            if d is None:
                from enstaller.enpkg import EnpkgError
                raise EnpkgError('Error: could not resolve %r' % r)
            eggs.append(d)

        can_order = self.are_complete(eggs)
        if self.verbose:
            print "Can determine install order:", can_order
        if can_order:
            eggs = self.determine_install_order(eggs)
        return eggs