Package zeroinstall :: Package injector
[frames] | no frames]

Package injector

source code

Code relating to interfaces and policies.

To run a program using the injector, the following steps are typical:

  1. Instantiate a policy.Policy, giving it the root interface's URI.
  2. Ask the policy object to choose a set of implementations.
    1. The policy will try to find a compatible set of implementations that meet the user's policy and work on the current architecture, using a solve.Solver.
    2. The solver looks up feeds in the iface_cache.
    3. The policy will fetch any feeds that are missing or out of date.
    4. The cached or downloaded XML is parsed into a model using the reader module.
  3. Download the selected implementations and zerostore.unpack into the zerostore.
  4. Finally, run the program.

The cli module provides the 0launch command-line interface.

Submodules