Package zeroinstall :: Package injector :: Module run :: Class Setup
[frames] | no frames]

Class Setup

source code

object --+
         |
        Setup


Since: 1.2

Instance Methods
 
__init__(self, stores, selections)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
[str]
build_command(self, command_iface, command_name, user_command=None, dry_run=False)
Create a list of strings to be passed to exec to run the <command>s in the selections.
source code
 
prepare_env(self)
Do all the environment bindings in the selections (setting os.environ).
source code
 
do_binding(self, impl, binding, iface)
Called by prepare_env for each binding.
source code
 
do_exec_binding(self, binding, iface) source code

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

Class Variables
  stores = None
Create a new digest.
  selections = None
Create a new digest.
Properties

Inherited from object: __class__

Method Details

__init__(self, stores, selections)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__

build_command(self, command_iface, command_name, user_command=None, dry_run=False)

source code 

Create a list of strings to be passed to exec to run the <command>s in the selections.

Parameters:
  • command_iface (str) - the interface of the program being run
  • command_name (str) - the name of the command being run
  • user_command (model.Command) - a custom command to use instead
  • dry_run (bool)
Returns: [str]
the argument list

do_binding(self, impl, binding, iface)

source code 

Called by prepare_env for each binding. Sub-classes may wish to override this.

Parameters:

do_exec_binding(self, binding, iface)

source code 
Parameters: