Package zeroinstall :: Package injector :: Module solver :: Class DefaultSolver
[frames] | no frames]

Class DefaultSolver

source code

object --+    
         |    
    Solver --+
             |
            DefaultSolver

The standard (rather naive) Zero Install solver.

Instance Methods
 
__init__(self, network_use, iface_cache, stores, extra_restrictions=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
bool
solve(self, root_interface, arch)
Get the best implementation of root_interface and all of its dependencies.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables

Inherited from Solver: details, feeds_used, record_details, selections

Properties

Inherited from object: __class__

Method Details

__init__(self, network_use, iface_cache, stores, extra_restrictions=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
Overrides: object.__init__

solve(self, root_interface, arch)

source code 

Get the best implementation of root_interface and all of its dependencies.

Parameters:
  • root_interface - the URI of the program to be solved
  • arch - the desired target architecture
Returns: bool
whether we have a viable selection
Overrides: Solver.solve
(inherited documentation)