Package conary :: Package build :: Module build :: Class Environment
[hide private]
[frames] | no frames]

Class Environment

source code

  action.Action --+        
                  |        
action.RecipeAction --+    
                      |    
            BuildAction --+
                          |
                         Environment

NAME

r.Environment() - Set an environment variable

SYNOPSIS

r.Environment('VARIABLE', 'value')

DESCRIPTION

The r.Environment() class is called from within a Conary recipe to set an environment variable after all macros have been set.

KEYWORDS

The r.Environment() class accepts the following keywords:

use : Optional argument of Use flag(s) telling whether to actually perform the action.

EXAMPLES

r.Environment('MOZ_THUNDERBIRD', '1')

Demonstrates calling r.Environment() to set the environment variable MOZ_THUNDERBIRD to 1.

Instance Methods [hide private]
 
__init__(self, recipe, *args, **keywords) source code
 
do(self, macros)
Do the build action
source code

Inherited from BuildAction: doAction, initManifest, missingFiles

Inherited from action.RecipeAction: doPrep, doSuggestAutoBuildReqs, init_error

Inherited from action.Action: addArgs

Inherited from action.Action (private): _applyDefaults

Class Variables [hide private]

Inherited from BuildAction: keywords, useExplicitManifest

Method Details [hide private]

__init__(self, recipe, *args, **keywords)
(Constructor)

source code 
Overrides: BuildAction.__init__
(inherited documentation)

do(self, macros)

source code 
Do the build action
Overrides: BuildAction.do
(inherited documentation)